Package org.nuxeo.elasticsearch.commands
Class IndexingCommandsStacker
java.lang.Object
org.nuxeo.elasticsearch.commands.IndexingCommandsStacker
- Direct Known Subclasses:
ElasticSearchInlineListener
Contains logic to stack ElasticSearch commands depending on Document events This class is mainly here to make testing
easier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Map<String,
IndexingCommands> protected IndexingCommands
getCommands
(DocumentModel doc) protected String
getDocKey
(DocumentModel doc) protected IndexingCommands
protected boolean
isSynchronous
(DocumentEventContext docCtx, DocumentModel doc) protected abstract boolean
protected void
stackCommand
(DocumentModel doc, String eventId, boolean sync) protected void
stackCommand
(DocumentModel doc, DocumentEventContext docCtx, String eventId) void
stackCommand
(DocumentEventContext docCtx, String eventId)
-
Constructor Details
-
IndexingCommandsStacker
public IndexingCommandsStacker()
-
-
Method Details
-
getAllCommands
-
isSyncIndexingByDefault
protected abstract boolean isSyncIndexingByDefault() -
getCommands
-
stackCommand
-
stackCommand
-
isSynchronous
-
stackCommand
-
getOrCreateCommands
-
getDocKey
-