Package org.nuxeo.ecm.core.event.pipe
Class AbstractPipeConsumer<T>
java.lang.Object
org.nuxeo.ecm.core.event.pipe.AbstractPipeConsumer<T>
- All Implemented Interfaces:
PipeConsumer<T>
- Direct Known Subclasses:
AbstractListenerPipeConsumer
Provides partial default implementation for a
PipeConsumer
- Since:
- 8.4
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getName()
void
initConsumer
(String name, Map<String, String> params) Initialize the Consumer when theEventBundlePipe
is initializedprotected abstract boolean
processEventBundles
(List<EventBundle> bundles) boolean
receiveMessage
(List<T> messages) Callback when a batch of messages is availableprotected abstract List<EventBundle>
unmarshallEventBundle
(List<T> messages) 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.PipeConsumer
shutdown, waitForCompletion
-
Field Details
-
name
-
params
-
-
Constructor Details
-
AbstractPipeConsumer
public AbstractPipeConsumer()
-
-
Method Details
-
initConsumer
Description copied from interface:PipeConsumer
Initialize the Consumer when theEventBundlePipe
is initialized- Specified by:
initConsumer
in interfacePipeConsumer<T>
-
getName
-
getParameters
-
receiveMessage
Description copied from interface:PipeConsumer
Callback when a batch of messages is available- Specified by:
receiveMessage
in interfacePipeConsumer<T>
-
unmarshallEventBundle
-
processEventBundles
-