A MessageHandler implementation that maps a Message into
a UDP datagram packet and sends that to the specified multicast address
(224.0.0.0 to 239.255.255.255) and port.
The only difference between this and its super class is the
ability to specify how many acknowledgments are required to
determine success.
MulticastSendingMessageHandler(java.lang.String address,
int port)
Constructs a MulticastSendingMessageHandler to send data to the multicast address/port.
MulticastSendingMessageHandler(java.lang.String address,
int port,
boolean lengthCheck)
Constructs a MulticastSendingMessageHandler to send data to the multicast address/port
and enables setting the lengthCheck option (if set, a length is prepended to the packet and checked
at the destination).
MulticastSendingMessageHandler(java.lang.String address,
int port,
boolean lengthCheck,
boolean acknowledge,
java.lang.String ackHost,
int ackPort,
int ackTimeout)
Constructs a MulticastSendingMessageHandler to send data to the multicast address/port
and enables setting the acknowledge option, where the destination sends a receipt acknowledgment.
MulticastSendingMessageHandler(java.lang.String address,
int port,
boolean acknowledge,
java.lang.String ackHost,
int ackPort,
int ackTimeout)
Constructs a MulticastSendingMessageHandler to send data to the multicast address/port
and enables setting the acknowledge option, where the destination sends a receipt acknowledgment.
public MulticastSendingMessageHandler(java.lang.String address,
int port)
Constructs a MulticastSendingMessageHandler to send data to the multicast address/port.
Parameters:
address - The multicast address.
port - The port.
MulticastSendingMessageHandler
public MulticastSendingMessageHandler(java.lang.String address,
int port,
boolean lengthCheck)
Constructs a MulticastSendingMessageHandler to send data to the multicast address/port
and enables setting the lengthCheck option (if set, a length is prepended to the packet and checked
at the destination).
Parameters:
address - The multicast address.
port - The port.
lengthCheck - Enable the lengthCheck option.
MulticastSendingMessageHandler
public MulticastSendingMessageHandler(java.lang.String address,
int port,
boolean acknowledge,
java.lang.String ackHost,
int ackPort,
int ackTimeout)
Constructs a MulticastSendingMessageHandler to send data to the multicast address/port
and enables setting the acknowledge option, where the destination sends a receipt acknowledgment.
Parameters:
address - The multicast address.
port - The port.
acknowledge - Whether or not acknowledgments are required.
ackHost - The host to which acknowledgments should be sent; required if acknowledge is true.
ackPort - The port to which acknowledgments should be sent; required if acknowledge is true.
ackTimeout - How long to wait (milliseconds) for an acknowledgment.
MulticastSendingMessageHandler
public MulticastSendingMessageHandler(java.lang.String address,
int port,
boolean lengthCheck,
boolean acknowledge,
java.lang.String ackHost,
int ackPort,
int ackTimeout)
Constructs a MulticastSendingMessageHandler to send data to the multicast address/port
and enables setting the acknowledge option, where the destination sends a receipt acknowledgment.
Parameters:
address - The multicast address.
port - The port.
lengthCheck - Enable the lengthCheck option.
acknowledge - Whether or not acknowledgments are required.
ackHost - The host to which acknowledgments should be sent; required if acknowledge is true.
ackPort - The port to which acknowledgments should be sent; required if acknowledge is true.
ackTimeout - How long to wait (milliseconds) for an acknowledgment.
On a multi-homed system, specifies the ip address of the network interface used to communicate.
For inbound adapters and gateways, specifies the interface used to listed for incoming connections.
If omitted, the endpoint will listen on all available adapters. For the UDP multicast outbound adapter
specifies the interface to which multicast packets will be sent. For UDP unicast and multicast
adapters, specifies which interface to which the acknowledgment socket will be bound. Does not
apply to TCP outbound adapters and gateways.