|
XNIO version 1.2.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface UdpChannel.Key
A registration key for a multicast group.
Method Summary | |
---|---|
UdpChannel.Key |
block(InetAddress source)
Block multicast packets from the given source address. |
UdpChannel |
getChannel()
Return the channel associated with this key. |
InetAddress |
getGroup()
Return the multicast group for which this key was created. |
NetworkInterface |
getNetworkInterface()
Return the network interface for which this key was created. |
InetAddress |
getSourceAddress()
Return the srouce address if this membership key is source specific, or null if this membership is not
source specific. |
boolean |
isOpen()
Determine if this membership is active. |
UdpChannel.Key |
unblock(InetAddress source)
Unblock multicast packets from the given source address that was previously blocked using the block(java.net.InetAddress) method. |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
UdpChannel.Key block(InetAddress source) throws IOException, UnsupportedOperationException, IllegalStateException, IllegalArgumentException
source
- the source address to block
IOException
- if an I/O error occurs
UnsupportedOperationException
- if the implementation does not support source filtering
IllegalStateException
- if this key is source-specific or is no longer valid
IllegalArgumentException
- if the source
parameter is not a unicast address or is not the same address type as the multicast groupUdpChannel.Key unblock(InetAddress source) throws IOException, IllegalStateException, UnsupportedOperationException
block(java.net.InetAddress)
method.
source
- the source address to unblock
IOException
- if an I/O error occurs
IllegalStateException
- if the given source address is not currently blocked or the key is no longer valid
UnsupportedOperationException
- if the implementation does not support source filteringUdpChannel getChannel()
InetAddress getGroup()
NetworkInterface getNetworkInterface()
InetAddress getSourceAddress()
null
if this membership is not
source specific.
boolean isOpen()
true
if the membership is still active
|
XNIO version 1.2.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |