|
XNIO API 2.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UdpChannel
A UDP channel. UDP channels are multipoint datagram channels which always use a SocketAddress
and
additionally support multicast registration.
Nested Class Summary | |
---|---|
static interface |
UdpChannel.Key
A registration key for a multicast group. |
Method Summary | |
---|---|
ChannelListener.Setter<? extends UdpChannel> |
getCloseSetter()
Get the setter which can be used to change the close handler for this channel. |
ChannelListener.Setter<? extends UdpChannel> |
getReadSetter()
Get the setter which can be used to change the read handler for this channel. |
ChannelListener.Setter<? extends UdpChannel> |
getWriteSetter()
Get the setter which can be used to change the write handler for this channel. |
UdpChannel.Key |
join(java.net.InetAddress group,
java.net.NetworkInterface iface)
Join a multicast group to begin receiving all datagrams sent to the group. |
UdpChannel.Key |
join(java.net.InetAddress group,
java.net.NetworkInterface iface,
java.net.InetAddress source)
Join a multicast group to begin receiving all datagrams sent to the group from a given source address. |
Methods inherited from interface org.jboss.xnio.channels.MultipointReadableMessageChannel |
---|
receive |
Methods inherited from interface org.jboss.xnio.channels.MultipointWritableMessageChannel |
---|
send, send, send |
Methods inherited from interface org.jboss.xnio.channels.SuspendableReadChannel |
---|
awaitReadable, awaitReadable, resumeReads, shutdownReads, suspendReads |
Methods inherited from interface org.jboss.xnio.channels.SuspendableWriteChannel |
---|
awaitWritable, awaitWritable, flush, resumeWrites, shutdownWrites, suspendWrites |
Methods inherited from interface java.nio.channels.Channel |
---|
close, isOpen |
Methods inherited from interface org.jboss.xnio.channels.Configurable |
---|
getOption, setOption, supportsOption |
Methods inherited from interface org.jboss.xnio.channels.BoundChannel |
---|
getLocalAddress |
Method Detail |
---|
UdpChannel.Key join(java.net.InetAddress group, java.net.NetworkInterface iface) throws java.io.IOException
group
- the multicast address to joiniface
- the network interface to join on
java.io.IOException
- if an I/O error occurs
java.lang.IllegalStateException
- if the channel is already a member of the group on this interface
java.lang.IllegalArgumentException
- if the group
parameters is not a multicast address, or is an unsupported address type
java.lang.SecurityException
- if a security manager is set, and its SecurityManager.checkMulticast(java.net.InetAddress)
method denies access to the groupUdpChannel.Key join(java.net.InetAddress group, java.net.NetworkInterface iface, java.net.InetAddress source) throws java.io.IOException
group
- the multicast address to joiniface
- the network interface to join onsource
- the source address to listen for
java.io.IOException
- if an I/O error occurs
java.lang.IllegalStateException
- if the channel is already a member of the group on this interface
java.lang.IllegalArgumentException
- if the group
parameters is not a multicast address, or is an unsupported address type
java.lang.SecurityException
- if a security manager is set, and its SecurityManager.checkMulticast(java.net.InetAddress)
method denies access to the group
java.lang.UnsupportedOperationException
- if the implementation does not support source filteringChannelListener.Setter<? extends UdpChannel> getReadSetter()
getReadSetter
in interface MultipointDatagramChannel<java.net.InetSocketAddress>
getReadSetter
in interface MultipointMessageChannel<java.net.InetSocketAddress>
getReadSetter
in interface MultipointReadableMessageChannel<java.net.InetSocketAddress>
getReadSetter
in interface SuspendableChannel
getReadSetter
in interface SuspendableReadChannel
ChannelListener.Setter<? extends UdpChannel> getCloseSetter()
getCloseSetter
in interface BoundChannel<java.net.InetSocketAddress>
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface MultipointDatagramChannel<java.net.InetSocketAddress>
getCloseSetter
in interface MultipointMessageChannel<java.net.InetSocketAddress>
getCloseSetter
in interface MultipointReadableMessageChannel<java.net.InetSocketAddress>
getCloseSetter
in interface MultipointWritableMessageChannel<java.net.InetSocketAddress>
getCloseSetter
in interface SuspendableChannel
getCloseSetter
in interface SuspendableReadChannel
getCloseSetter
in interface SuspendableWriteChannel
ChannelListener.Setter<? extends UdpChannel> getWriteSetter()
getWriteSetter
in interface MultipointDatagramChannel<java.net.InetSocketAddress>
getWriteSetter
in interface MultipointMessageChannel<java.net.InetSocketAddress>
getWriteSetter
in interface MultipointWritableMessageChannel<java.net.InetSocketAddress>
getWriteSetter
in interface SuspendableChannel
getWriteSetter
in interface SuspendableWriteChannel
|
XNIO API 2.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |