public interface DrainListenerTask
StreamTask allowing the method implementor to specify code to be
executed when the 'drain' is reached for a task.| Modifier and Type | Method and Description |
|---|---|
void |
onDrain(MessageCollector collector,
TaskCoordinator coordinator)
Guaranteed to be invoked when all SSPs processed by this task have drained.
|
void onDrain(MessageCollector collector, TaskCoordinator coordinator) throws java.lang.Exception
collector - Contains the means of sending message envelopes to an output stream.*coordinator - Manages execution of tasks.java.lang.Exception - Any exception types encountered during the execution of the processing task.