public class ElasticSearchInlineListener extends IndexingCommandsStacker implements EventListener, Synchronization
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<Boolean> |
useSyncIndexing |
Constructor and Description |
---|
ElasticSearchInlineListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(int status) |
void |
beforeCompletion() |
void |
handleEvent(Event event)
Handle the given event.
|
stackCommand
public static ThreadLocal<Boolean> useSyncIndexing
public void handleEvent(Event event) throws ClientException
EventListener
Event.cancel()
handleEvent
in interface EventListener
event
- the eventClientException
public void beforeCompletion()
beforeCompletion
in interface Synchronization
public void afterCompletion(int status)
afterCompletion
in interface Synchronization
Copyright © 2015 Nuxeo SA. All rights reserved.