public abstract class MessageSink extends Object
Constructor and Description |
---|
MessageSink() |
Modifier and Type | Method and Description |
---|---|
abstract Iterable<CommandSource> |
getRecipients()
Return all command sources that will receive messages sent through to this sink.
|
void |
sendMessage(Text text)
Process a message using this sink, transforming and sending it to the appropriate recipients.
|
Text |
transformMessage(CommandSource target,
Text text)
Handle transforming the input message appropriately.
|
public final void sendMessage(Text text)
text
- The text to sendpublic Text transformMessage(CommandSource target, Text text)
target
- The target to transform the message fortext
- The message to sendpublic abstract Iterable<CommandSource> getRecipients()