protected static class PostCommitEventExecutor.EventBundleRunner extends Object implements Callable<Boolean>
For each listener, the event bundle is reconnected to a session and a transaction is started.
In case of exception in a listener, the transaction is rolled back for that listener but processing continues for the other listeners.
In case of timeout, an error is logged but processing continues for the other listeners (the thread is left running separately from the main thread that initiated post-commit processing).
Modifier and Type | Field and Description |
---|---|
protected EventBundle |
bundle |
protected List<EventListenerDescriptor> |
listeners |
Constructor and Description |
---|
EventBundleRunner(List<EventListenerDescriptor> listeners,
EventBundle bundle) |
protected final List<EventListenerDescriptor> listeners
protected final EventBundle bundle
public EventBundleRunner(List<EventListenerDescriptor> listeners, EventBundle bundle)
Copyright © 2015 Nuxeo SA. All rights reserved.