| Constructor and Description |
|---|
SendProtocol(Object id,
String displayName,
String channelKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleIncoming(Message message)
Handles an incoming message.
|
void |
handleOutgoing(Message message)
Handles an outgoing message.
|
void |
start(ProtocolContext<Message> context)
Called to initialise the protocol.
|
void |
stopRequested()
Requests that this protocol initiate its stop messages.
|
public void start(ProtocolContext<Message> context)
Protocolpublic void handleIncoming(Message message)
ProtocolhandleIncoming in interface Protocol<Message>public void handleOutgoing(Message message)
ProtocolhandleOutgoing in interface Protocol<Message>public void stopRequested()
ProtocolProtocolContext.stopLater() to defer stop until some
messages are received. In which case, it should later call ProtocolContext.stopped() to indicate it has finished.
If the protocol does not call stopLater(), it is assumed to have stopped when this method returns.stopRequested in interface Protocol<Message>Copyright © 2013. All rights reserved