Package org.nuxeo.ecm.core.event.pipe
Class AbstractEventBundlePipe<T>
- java.lang.Object
-
- org.nuxeo.ecm.core.event.pipe.AbstractEventBundlePipe<T>
-
- All Implemented Interfaces:
EventBundlePipe
- Direct Known Subclasses:
LocalEventBundlePipe
public abstract class AbstractEventBundlePipe<T> extends Object implements EventBundlePipe
- Since:
- 8.4
-
-
Constructor Summary
Constructors Constructor Description AbstractEventBundlePipe()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected EventBundlefilterBundle(EventBundle events)protected StringgetName()protected Map<String,String>getParameters()voidinitPipe(String name, Map<String,String> params)Initialize the Pipe when Nuxeo Event Service startsprotected abstract Tmarshall(EventBundle events)de-hydrate the EventBundle to make it suitable for transmission on a Busprotected voidpreProcessBundle(EventBundle events)protected abstract voidsend(T message)Do the actual push on the BusvoidsendEventBundle(EventBundle events)Send anEventBundleinside the pipevoidshutdown()Shutdown callback when theEventServicestops-
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
waitForCompletion
-
-
-
-
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- Parameters:
name- the name as defined in the XMap descriptorparams- the parameters as defined in the XMap descriptor
-
getName
protected String getName()
-
sendEventBundle
public void sendEventBundle(EventBundle events)
Description copied from interface:EventBundlePipeSend anEventBundleinside the pipe- Specified by:
sendEventBundlein interfaceEventBundlePipe
-
filterBundle
protected EventBundle filterBundle(EventBundle events)
-
preProcessBundle
protected void preProcessBundle(EventBundle events)
-
marshall
protected abstract T marshall(EventBundle events)
de-hydrate the EventBundle to make it suitable for transmission on a Bus
-
send
protected abstract void send(T message)
Do the actual push on the Bus
-
shutdown
public void shutdown() throws InterruptedExceptionDescription copied from interface:EventBundlePipeShutdown callback when theEventServicestops- Specified by:
shutdownin interfaceEventBundlePipe- Throws:
InterruptedException
-
-