Class SimpleEventBundlePipeDispatcher
- java.lang.Object
-
- org.nuxeo.ecm.core.event.pipe.dispatch.SimpleEventBundlePipeDispatcher
-
- All Implemented Interfaces:
EventBundleDispatcher
public class SimpleEventBundlePipeDispatcher extends Object implements EventBundleDispatcher
Basic implementation that simply forwardsEventBundleto all underlyingEventBundlePipe- Since:
- 8.4
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>parametersprotected List<EventBundlePipe>pipes
-
Constructor Summary
Constructors Constructor Description SimpleEventBundlePipeDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(List<EventPipeDescriptor> pipeDescriptors, Map<String,String> parameters)Initialize the dispatchervoidsendEventBundle(EventBundle events)Forward anEventBundleto the underlyingEventBundlePipesvoidshutdown()Shutdown callbackbooleanwaitForCompletion(long timeoutMillis)Wait until the end of processing
-
-
-
Field Detail
-
pipes
protected List<EventBundlePipe> pipes
-
-
Method Detail
-
init
public void init(List<EventPipeDescriptor> pipeDescriptors, Map<String,String> parameters)
Description copied from interface:EventBundleDispatcherInitialize the dispatcher- Specified by:
initin interfaceEventBundleDispatcher- Parameters:
pipeDescriptors- descriptors of the underlyingEventBundlePipes
-
sendEventBundle
public void sendEventBundle(EventBundle events)
Description copied from interface:EventBundleDispatcherForward anEventBundleto the underlyingEventBundlePipes- Specified by:
sendEventBundlein interfaceEventBundleDispatcher
-
waitForCompletion
public boolean waitForCompletion(long timeoutMillis) throws InterruptedExceptionDescription copied from interface:EventBundleDispatcherWait until the end of processing- Specified by:
waitForCompletionin interfaceEventBundleDispatcher- Throws:
InterruptedException
-
shutdown
public void shutdown() throws InterruptedExceptionDescription copied from interface:EventBundleDispatcherShutdown callback- Specified by:
shutdownin interfaceEventBundleDispatcher- Throws:
InterruptedException
-
-