@Internal public abstract class AbstractESTask extends Object implements ESTask
Modifier and Type | Field and Description |
---|---|
protected ESDocumentBuilder |
documentBuilder |
protected long |
order |
protected Supplier<com.atlassian.bonnie.Searchable> |
searchableSupplier |
Constructor and Description |
---|
AbstractESTask(Supplier<com.atlassian.bonnie.Searchable> searchableSupplier,
ESDocumentBuilder documentBuilder) |
Modifier and Type | Method and Description |
---|---|
Optional<JournalEntry> |
convertToJournalEntry(JournalIdentifier journalId)
Convert to journal entry.
|
boolean |
equals(Object o) |
protected abstract JournalEntryType |
getJournalEntryType() |
long |
getOrder() |
int |
hashCode() |
abstract void |
innerPerform(com.atlassian.bonnie.Searchable searchable,
ESIndexRequestProcessor processor) |
ESTask |
order(long order)
Set order of the task used for optimistic concurrency control
|
void |
perform(ESIndexRequestProcessor processor)
Perform this task with the specified ES Task processor.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription
protected final Supplier<com.atlassian.bonnie.Searchable> searchableSupplier
protected final ESDocumentBuilder documentBuilder
protected long order
public AbstractESTask(Supplier<com.atlassian.bonnie.Searchable> searchableSupplier, ESDocumentBuilder documentBuilder)
public abstract void innerPerform(@Nonnull com.atlassian.bonnie.Searchable searchable, ESIndexRequestProcessor processor)
protected abstract JournalEntryType getJournalEntryType()
public Optional<JournalEntry> convertToJournalEntry(JournalIdentifier journalId)
ConvertibleToJournalEntry
convertToJournalEntry
in interface ConvertibleToJournalEntry
journalId
- journal identifierpublic final void perform(ESIndexRequestProcessor processor)
ESTask
public ESTask order(long order)
ESTask
public long getOrder()
Copyright © 2003–2017 Atlassian. All rights reserved.