Package org.nuxeo.ecm.core.event.pipe
Interface PipeConsumer<T>
- All Known Implementing Classes:
AbstractListenerPipeConsumer,AbstractPipeConsumer,LocalEventBundlePipeConsumer
public interface PipeConsumer<T>
SPI for a consumer of messages inside the
EventBundlePipe- Since:
- 8.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidinitConsumer(String name, Map<String, String> params) Initialize the Consumer when theEventBundlePipeis initializedbooleanreceiveMessage(List<T> messages) Callback when a batch of messages is availablevoidshutdown()Shutdown the consumer when theEventBundlePipeis shutdownbooleanwaitForCompletion(long timeoutMillis) Wait until consumer is done
-
Method Details
-
initConsumer
Initialize the Consumer when theEventBundlePipeis initialized -
receiveMessage
Callback when a batch of messages is available -
shutdown
Shutdown the consumer when theEventBundlePipeis shutdown- Throws:
InterruptedException
-
waitForCompletion
Wait until consumer is done- Throws:
InterruptedException
-