Class LocalEventBundlePipe
java.lang.Object
org.nuxeo.ecm.core.event.pipe.AbstractEventBundlePipe<EventBundle>
org.nuxeo.ecm.core.event.pipe.local.LocalEventBundlePipe
- All Implemented Interfaces:
EventBundlePipe
@Experimental
public class LocalEventBundlePipe
extends AbstractEventBundlePipe<EventBundle>
implements EventBundlePipe
Local In memory implementation: directly relays to WorkManager
- Since:
- 8.4
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.event.pipe.AbstractEventBundlePipe
name, params
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Initialize the Pipe when Nuxeo Event Service startsprotected EventBundle
marshall
(EventBundle events) de-hydrate the EventBundle to make it suitable for transmission on a Busprotected void
send
(EventBundle message) Do the actual push on the Busboolean
waitForCompletion
(long timeoutMillis) Wait until the end of event consumptionMethods inherited from class org.nuxeo.ecm.core.event.pipe.AbstractEventBundlePipe
filterBundle, getName, getParameters, preProcessBundle, sendEventBundle, shutdown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.event.pipe.EventBundlePipe
sendEventBundle, shutdown
-
Field Details
-
consumer
-
-
Constructor Details
-
LocalEventBundlePipe
public LocalEventBundlePipe()
-
-
Method Details
-
initPipe
Description copied from interface:EventBundlePipe
Initialize the Pipe when Nuxeo Event Service starts- Specified by:
initPipe
in interfaceEventBundlePipe
- Overrides:
initPipe
in classAbstractEventBundlePipe<EventBundle>
- Parameters:
name
- the name as defined in the XMap descriptorparams
- the parameters as defined in the XMap descriptor
-
send
Description copied from class:AbstractEventBundlePipe
Do the actual push on the Bus- Specified by:
send
in classAbstractEventBundlePipe<EventBundle>
-
marshall
Description copied from class:AbstractEventBundlePipe
de-hydrate the EventBundle to make it suitable for transmission on a Bus- Specified by:
marshall
in classAbstractEventBundlePipe<EventBundle>
-
waitForCompletion
Description copied from interface:EventBundlePipe
Wait until the end of event consumption- Specified by:
waitForCompletion
in interfaceEventBundlePipe
- Throws:
InterruptedException
-