@Internal public class ESIndexChangeTask extends AbstractESTask
anyTypeDao, documentBuilder, handle, order
Constructor and Description |
---|
ESIndexChangeTask(HibernateHandle handle,
AnyTypeDao anyTypeDao,
ESDocumentBuilder changeDocumentBuilder) |
Modifier and Type | Method and Description |
---|---|
Optional<JournalEntry> |
convertToJournalEntry(JournalIdentifier journalId)
Convert to journal entry.
|
static String |
getChangeDocumentId(com.atlassian.bonnie.Searchable searchable) |
String |
getDescription()
A description of the task that can be presented to the user via the UI.
|
static String |
getOriginalId(com.atlassian.bonnie.Searchable searchable) |
void |
perform(ESIndexRequestProcessor processor)
Perform this task with the specified ES Task processor.
|
equals, getOrder, getSearchable, hashCode, setOrder, toString
public ESIndexChangeTask(HibernateHandle handle, AnyTypeDao anyTypeDao, ESDocumentBuilder changeDocumentBuilder)
public static String getChangeDocumentId(com.atlassian.bonnie.Searchable searchable)
public static String getOriginalId(com.atlassian.bonnie.Searchable searchable)
public void perform(ESIndexRequestProcessor processor)
ESTask
processor
- a bulk processorpublic Optional<JournalEntry> convertToJournalEntry(JournalIdentifier journalId)
ConvertibleToJournalEntry
journalId
- journal identifierCopyright © 2003–2016 Atlassian. All rights reserved.