| Modifier and Type | Class and Description |
|---|---|
| public static interface | MulticastMessageChannel.
A registration key for a multicast group. |
| Modifier and Type | Method and Description |
|---|---|
| public ChannelListener. | getCloseSetter()
Redeclares org. Get the setter which can be used to change the close listener for this channel. |
| public ChannelListener. | getReadSetter()
Redeclares org. Get the setter which can be used to change the read listener for this channel. |
| public ChannelListener. | getWriteSetter()
Redeclares org. Get the setter which can be used to change the write listener for this channel. |
| public MulticastMessageChannel. | Returns: a new keythe multicast address to join group, NetworkInterface the network interface to join on iface)Join a multicast group to begin receiving all datagrams sent to the group. |
| public MulticastMessageChannel. | Returns: a new keythe multicast address to join group, NetworkInterface the network interface to join on iface, InetAddress the source address to listen for source)Join a multicast group to begin receiving all datagrams sent to the group from a given source address. |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. Redeclares org. Doc from org. Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.
| |
| getReadSetter | back to summary |
|---|---|
| public ChannelListener. Redeclares org. Doc from org. Get the setter which can be used to change the read listener for this channel.
| |
| getWriteSetter | back to summary |
|---|---|
| public ChannelListener. Redeclares org. Doc from org. Get the setter which can be used to change the write listener for this channel.
| |
| join | back to summary |
|---|---|
| public MulticastMessageChannel. Join a multicast group to begin receiving all datagrams sent to the group. A multicast channel may join several multicast groups, including the same group on more than one interface. An implementation may impose a limit on the number of groups that may be joined at the same time.
| |
| join | back to summary |
|---|---|
| public MulticastMessageChannel. Join a multicast group to begin receiving all datagrams sent to the group from a given source address. A multicast channel may join several multicast groups, including the same group on more than one interface. An implementation may impose a limit on the number of groups that may be joined at the same time.
| |
| Modifier and Type | Method and Description |
|---|---|
| public MulticastMessageChannel. | Returns: this keythe source address to block source)Block multicast packets from the given source address. |
| public MulticastMessageChannel | |
| public InetAddress | |
| public NetworkInterface | Returns: the network interfaceReturn the network interface for which this key was created. |
| public InetAddress | Returns: the source addressReturn the source address if this membership key is source specific, or |
| public boolean | |
| public MulticastMessageChannel. | Returns: this keythe source address to unblock source)Unblock multicast packets from the given source address that was previously blocked using the |
| block | back to summary |
|---|---|
| public MulticastMessageChannel. Block multicast packets from the given source address. If this membership key is not source-specific, and the implementation supports source filtering, then this method blocks multicast packets from the given source addresses. After a source address is blocked it may still be possible to receive datagrams from that source. This can arise when datagrams are waiting to be received in the socket's receive buffer.
| |
| getChannel | back to summary |
|---|---|
| public MulticastMessageChannel getChannel() Return the channel associated with this key. This method will return the channel even after the membership is dropped.
| |
| getGroup | back to summary |
|---|---|
| public InetAddress getGroup() Return the multicast group for which this key was created. This method will continue to return the group even after the membership is dropped.
| |
| getNetworkInterface | back to summary |
|---|---|
| public NetworkInterface getNetworkInterface() Return the network interface for which this key was created. This method will continue to return the network interface even after the membership is dropped or the channel is closed.
| |
| getSourceAddress | back to summary |
|---|---|
| public InetAddress getSourceAddress() Return the source address if this membership key is source specific, or
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Determine if this membership is active.
| |
| unblock | back to summary |
|---|---|
| public MulticastMessageChannel. Unblock multicast packets from the given source address that was previously blocked using the
| |