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 Modifier and Type Field Description protected LocalEventBundlePipeConsumerconsumer-
Fields inherited from class org.nuxeo.ecm.core.event.pipe.AbstractEventBundlePipe
name, params
-
-
Constructor Summary
Constructors Constructor Description LocalEventBundlePipe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitPipe(String name, Map<String,String> params)Initialize the Pipe when Nuxeo Event Service startsprotected EventBundlemarshall(EventBundle events)de-hydrate the EventBundle to make it suitable for transmission on a Busprotected voidsend(EventBundle message)Do the actual push on the BusbooleanwaitForCompletion(long timeoutMillis)Wait until the end of event consumption-
Methods 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 Detail
-
consumer
protected LocalEventBundlePipeConsumer consumer
-
-
Method Detail
-
initPipe
public void initPipe(String name, Map<String,String> params)
Description copied from interface:EventBundlePipeInitialize the Pipe when Nuxeo Event Service starts- Specified by:
initPipein interfaceEventBundlePipe- Overrides:
initPipein classAbstractEventBundlePipe<EventBundle>- Parameters:
name- the name as defined in the XMap descriptorparams- the parameters as defined in the XMap descriptor
-
send
protected void send(EventBundle message)
Description copied from class:AbstractEventBundlePipeDo the actual push on the Bus- Specified by:
sendin classAbstractEventBundlePipe<EventBundle>
-
marshall
protected EventBundle marshall(EventBundle events)
Description copied from class:AbstractEventBundlePipede-hydrate the EventBundle to make it suitable for transmission on a Bus- Specified by:
marshallin classAbstractEventBundlePipe<EventBundle>
-
waitForCompletion
public boolean waitForCompletion(long timeoutMillis) throws InterruptedExceptionDescription copied from interface:EventBundlePipeWait until the end of event consumption- Specified by:
waitForCompletionin interfaceEventBundlePipe- Throws:
InterruptedException
-
-