public interface MulticastMessageChannel extends BoundMultipointMessageChannel
Modifier and Type | Interface and Description |
---|---|
static interface |
MulticastMessageChannel.Key
A registration key for a multicast group.
|
EMPTY
Modifier and Type | Method and Description |
---|---|
ChannelListener.Setter<? extends MulticastMessageChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
ChannelListener.Setter<? extends MulticastMessageChannel> |
getReadSetter()
Get the setter which can be used to change the read listener for this channel.
|
ChannelListener.Setter<? extends MulticastMessageChannel> |
getWriteSetter()
Get the setter which can be used to change the write listener for this channel.
|
MulticastMessageChannel.Key |
join(InetAddress group,
NetworkInterface iface)
Join a multicast group to begin receiving all datagrams sent to the group.
|
MulticastMessageChannel.Key |
join(InetAddress group,
NetworkInterface iface,
InetAddress source)
Join a multicast group to begin receiving all datagrams sent to the group from a given source address.
|
receiveFrom, receiveFrom, receiveFrom
sendTo, sendTo, sendTo
awaitReadable, awaitReadable, getReadThread, isReadResumed, resumeReads, shutdownReads, suspendReads, wakeupReads
awaitWritable, awaitWritable, close, flush, getWriteThread, isOpen, isWriteResumed, resumeWrites, shutdownWrites, suspendWrites, wakeupWrites
getIoThread, getWorker
getOption, setOption, supportsOption
getLocalAddress, getLocalAddress
MulticastMessageChannel.Key join(InetAddress group, NetworkInterface iface) throws IOException
group
- the multicast address to joiniface
- the network interface to join onIOException
- if an I/O error occursIllegalStateException
- if the channel is already a member of the group on this interfaceIllegalArgumentException
- if the group
parameters is not a multicast address, or is an unsupported address typeSecurityException
- if a security manager is set, and its SecurityManager.checkMulticast(InetAddress)
method denies access to the groupMulticastMessageChannel.Key join(InetAddress group, NetworkInterface iface, InetAddress source) throws IOException
group
- the multicast address to joiniface
- the network interface to join onsource
- the source address to listen forIOException
- if an I/O error occursIllegalStateException
- if the channel is already a member of the group on this interfaceIllegalArgumentException
- if the group
parameters is not a multicast address, or is an unsupported address typeSecurityException
- if a security manager is set, and its SecurityManager.checkMulticast(InetAddress)
method denies access to the groupUnsupportedOperationException
- if the implementation does not support source filteringChannelListener.Setter<? extends MulticastMessageChannel> getReadSetter()
getReadSetter
in interface BoundMultipointMessageChannel
getReadSetter
in interface MultipointMessageChannel
getReadSetter
in interface ReadableMultipointMessageChannel
getReadSetter
in interface SuspendableChannel
getReadSetter
in interface SuspendableReadChannel
ChannelListener.Setter<? extends MulticastMessageChannel> getCloseSetter()
getCloseSetter
in interface BoundChannel
getCloseSetter
in interface BoundMultipointMessageChannel
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface MultipointMessageChannel
getCloseSetter
in interface ReadableMultipointMessageChannel
getCloseSetter
in interface SuspendableChannel
getCloseSetter
in interface SuspendableReadChannel
getCloseSetter
in interface SuspendableWriteChannel
getCloseSetter
in interface WritableMultipointMessageChannel
ChannelListener.Setter<? extends MulticastMessageChannel> getWriteSetter()
getWriteSetter
in interface BoundMultipointMessageChannel
getWriteSetter
in interface MultipointMessageChannel
getWriteSetter
in interface SuspendableChannel
getWriteSetter
in interface SuspendableWriteChannel
getWriteSetter
in interface WritableMultipointMessageChannel
Copyright © 2017 JBoss by Red Hat. All rights reserved.