public interface MessageCollector
A MessageCollector is provided on every call to StreamTask.process(org.apache.samza.system.IncomingMessageEnvelope, org.apache.samza.task.MessageCollector, org.apache.samza.task.TaskCoordinator)
and
WindowableTask.window(org.apache.samza.task.MessageCollector, org.apache.samza.task.TaskCoordinator)
. You must use those MessageCollector objects only within
those method calls, and not hold on to a reference for use at any other time.
Modifier and Type | Method and Description |
---|---|
void |
send(OutgoingMessageEnvelope envelope)
Sends message envelope out onto specified stream.
|
void send(OutgoingMessageEnvelope envelope)
envelope
- Self contained envelope containing message, key and specified stream to be sent to.