public class BlockingIOMulticastSender extends AbstractMulticastMessageSender implements Runnable
MulticastMessageSender's implementation and extends
AbstractMulticastMessageSender
This uses MulticastSocket which is based on Blocking I/OlocalPeerIDTCP_TRANSPORT, UDP_TRANSPORT| Constructor and Description |
|---|
BlockingIOMulticastSender(String host,
String multicastAddress,
int multicastPort,
String networkInterfaceName,
int multicastPacketSize,
PeerID localPeerID,
Executor executor,
int multicastTimeToLive,
NetworkManager networkManager) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doBroadcast(Message message)
Broadcasts or Multicasts the given
Message to all members |
void |
run() |
void |
start() |
void |
stop() |
broadcastpublic BlockingIOMulticastSender(String host, String multicastAddress, int multicastPort, String networkInterfaceName, int multicastPacketSize, PeerID localPeerID, Executor executor, int multicastTimeToLive, NetworkManager networkManager) throws IOException
IOExceptionpublic void start()
throws IOException
start in interface ShoalMessageSenderstart in class AbstractMulticastMessageSenderIOExceptionpublic void stop()
throws IOException
stop in interface ShoalMessageSenderstop in class AbstractMulticastMessageSenderIOExceptionprotected boolean doBroadcast(Message message) throws IOException
Message to all membersdoBroadcast in class AbstractMulticastMessageSendermessage - a message which is sent to all membersIOException - if I/O error occurs or given parameters are not validCopyright © 2017–2020 Eclipse Foundation. All rights reserved.