public static interface MulticastMessageChannel.Key extends Closeable
Modifier and Type | Method and Description |
---|---|
MulticastMessageChannel.Key |
block(InetAddress source)
Block multicast packets from the given source address.
|
MulticastMessageChannel |
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 source 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.
|
MulticastMessageChannel.Key |
unblock(InetAddress source)
Unblock multicast packets from the given source address that was previously blocked using the
block(InetAddress) method. |
MulticastMessageChannel.Key block(InetAddress source) throws IOException, UnsupportedOperationException, IllegalStateException, IllegalArgumentException
source
- the source address to blockIOException
- if an I/O error occursUnsupportedOperationException
- if the implementation does not support source filteringIllegalStateException
- if this key is source-specific or is no longer validIllegalArgumentException
- if the source
parameter is not a unicast address or is not the same address type as the multicast groupMulticastMessageChannel.Key unblock(InetAddress source) throws IOException, IllegalStateException, UnsupportedOperationException
block(InetAddress)
method.source
- the source address to unblockIOException
- if an I/O error occursIllegalStateException
- if the given source address is not currently blocked or the key is no longer validUnsupportedOperationException
- if the implementation does not support source filteringMulticastMessageChannel getChannel()
InetAddress getGroup()
NetworkInterface getNetworkInterface()
InetAddress getSourceAddress()
null
if this membership is not
source specific.boolean isOpen()
true
if the membership is still activeCopyright © 2020 JBoss by Red Hat. All rights reserved.