public class DefaultSendBehavior extends Object implements SendBehavior
SendBehavior.SendMethod| Constructor and Description |
|---|
DefaultSendBehavior() |
| Modifier and Type | Method and Description |
|---|---|
SendBehavior.SendMethod |
tcpSendBehavior(Message message)
Returns the send behavior depending on the message to be sent over TCP.
|
SendBehavior.SendMethod |
udpSendBehavior(Message message)
Returns the send behavior depending on the message to be sent over UDP.
|
public SendBehavior.SendMethod tcpSendBehavior(Message message)
SendBehaviortcpSendBehavior in interface SendBehaviormessage - the message to be sentpublic SendBehavior.SendMethod udpSendBehavior(Message message) throws UnsupportedOperationException
SendBehaviorudpSendBehavior in interface SendBehaviormessage - the message to be sentUnsupportedOperationException - sending over UDP is not allowed for this message.Copyright © 2014. All rights reserved.