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 forwardsEventBundle
to all underlyingEventBundlePipe
- Since:
- 8.4
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>
parameters
protected List<EventBundlePipe>
pipes
-
Constructor Summary
Constructors Constructor Description SimpleEventBundlePipeDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(List<EventPipeDescriptor> pipeDescriptors, Map<String,String> parameters)
Initialize the dispatchervoid
sendEventBundle(EventBundle events)
Forward anEventBundle
to the underlyingEventBundlePipe
svoid
shutdown()
Shutdown callbackboolean
waitForCompletion(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:EventBundleDispatcher
Initialize the dispatcher- Specified by:
init
in interfaceEventBundleDispatcher
- Parameters:
pipeDescriptors
- descriptors of the underlyingEventBundlePipe
s
-
sendEventBundle
public void sendEventBundle(EventBundle events)
Description copied from interface:EventBundleDispatcher
Forward anEventBundle
to the underlyingEventBundlePipe
s- Specified by:
sendEventBundle
in interfaceEventBundleDispatcher
-
waitForCompletion
public boolean waitForCompletion(long timeoutMillis) throws InterruptedException
Description copied from interface:EventBundleDispatcher
Wait until the end of processing- Specified by:
waitForCompletion
in interfaceEventBundleDispatcher
- Throws:
InterruptedException
-
shutdown
public void shutdown() throws InterruptedException
Description copied from interface:EventBundleDispatcher
Shutdown callback- Specified by:
shutdown
in interfaceEventBundleDispatcher
- Throws:
InterruptedException
-
-