Interface BroadcastIPBabelChannel
- All Superinterfaces:
BabelChannel, IPBabelChannel
- All Known Implementing Classes:
UDPBabelChannel
Channel interface for IP channels supporting local network broadcast or multicast operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidmulticast(BabelMessage message) Multicast for all the connected local network nodes.Methods inherited from interface BabelChannel
connect, disconnect, getInner, isConnected, send, sendEphemeral, shutdownModifier and TypeMethodDescriptionvoidConnect to another Babel runtime.voiddisconnect(BabelNode peer) Closes the connection topeer.default BabelChannelgetInner()Gets this channel or returns the inner channel if this instance is a wrapper.booleanisConnected(BabelNode peer) Returnstrueif a connection topeeris currently open on this channel.voidsend(BabelNode peer, BabelMessage message) Sends a message through this channel to the given peer using a persistent connection.voidsendEphemeral(BabelNode peer, BabelMessage message) Sends a message topeerwithout establishing a persistent connection.voidshutdown()Releases all resources held by this channel, closing any open connections.Methods inherited from interface IPBabelChannel
getBindingAddressModifier and TypeMethodDescriptionReturns the local IP socket address to which this channel is bound.
-
Method Details
-
multicast
Multicast for all the connected local network nodes. The multicast address must be set during the instantiation of the channel. The channel should also be listening in the same multicast address and port.- Parameters:
message- message to be broadcasted.- Throws:
UnsupportedOperationException- if the channel doesn't support multicast or isn't supported at all.
-