public class ElasticSearchInlineListener extends IndexingCommandsStacker implements EventListener, Synchronization
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<Boolean> |
isEnlisted |
protected static ThreadLocal<Map<String,IndexingCommands>> |
transactionCommands |
static ThreadLocal<Boolean> |
useSyncIndexing |
| Constructor and Description |
|---|
ElasticSearchInlineListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(int status) |
void |
beforeCompletion() |
protected Map<String,IndexingCommands> |
getAllCommands() |
void |
handleEvent(Event event)
Handle the given event.
|
protected boolean |
isSyncIndexingByDefault() |
protected boolean |
registerSynchronization(Synchronization sync) |
getCommands, getDocKey, getOrCreateCommands, isSynchronous, stackCommand, stackCommand, stackCommandprotected static ThreadLocal<Map<String,IndexingCommands>> transactionCommands
public static final ThreadLocal<Boolean> useSyncIndexing
protected static ThreadLocal<Boolean> isEnlisted
public ElasticSearchInlineListener()
protected Map<String,IndexingCommands> getAllCommands()
getAllCommands in class IndexingCommandsStackerprotected boolean isSyncIndexingByDefault()
isSyncIndexingByDefault in class IndexingCommandsStackerpublic void handleEvent(Event event)
EventListenerEvent.cancel()handleEvent in interface EventListenerevent - the eventpublic void beforeCompletion()
beforeCompletion in interface Synchronizationpublic void afterCompletion(int status)
afterCompletion in interface Synchronizationprotected boolean registerSynchronization(Synchronization sync)
Copyright © 2019 Nuxeo. All rights reserved.