public class SimpleEventBundlePipeDispatcher extends Object implements EventBundleDispatcher
EventBundle to all underlying EventBundlePipe| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
parameters |
protected List<EventBundlePipe> |
pipes |
| Constructor and Description |
|---|
SimpleEventBundlePipeDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(List<EventPipeDescriptor> pipeDescriptors,
Map<String,String> parameters)
Initialize the dispatcher
|
void |
sendEventBundle(EventBundle events)
Forward an
EventBundle to the underlying EventBundlePipes |
void |
shutdown()
Shutdown callback
|
boolean |
waitForCompletion(long timeoutMillis)
Wait until the end of processing
|
protected List<EventBundlePipe> pipes
protected Map<String,String> parameters
public SimpleEventBundlePipeDispatcher()
public void init(List<EventPipeDescriptor> pipeDescriptors, Map<String,String> parameters)
EventBundleDispatcherinit in interface EventBundleDispatcherpipeDescriptors - descriptors of the underlying EventBundlePipespublic void sendEventBundle(EventBundle events)
EventBundleDispatcherEventBundle to the underlying EventBundlePipessendEventBundle in interface EventBundleDispatcherpublic boolean waitForCompletion(long timeoutMillis) throws InterruptedException
EventBundleDispatcherwaitForCompletion in interface EventBundleDispatcherInterruptedExceptionpublic void shutdown() throws InterruptedException
EventBundleDispatchershutdown in interface EventBundleDispatcherInterruptedExceptionCopyright © 2019 Nuxeo. All rights reserved.