Package org.nuxeo.ecm.core.event.impl
Class PostCommitEventExecutor.EventBundleRunner
java.lang.Object
org.nuxeo.ecm.core.event.impl.PostCommitEventExecutor.EventBundleRunner
- Enclosing class:
- PostCommitEventExecutor
protected static class PostCommitEventExecutor.EventBundleRunner
extends Object
implements Callable<Boolean>
Lets the listeners process the event bundle.
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).
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EventBundle
protected String
protected final List<EventListenerDescriptor>
protected final byte[]
-
Constructor Summary
ConstructorDescriptionEventBundleRunner
(List<EventListenerDescriptor> listeners, EventBundle bundle) -
Method Summary
Modifier and TypeMethodDescriptioncall()
protected io.opencensus.trace.Span
getTracingSpan
(String spanName)