final class OioDatagramChannel extends AbstractOioChannel implements DatagramChannel
| Modifier and Type | Field and Description |
|---|---|
private DatagramChannelConfig |
config |
(package private) java.net.MulticastSocket |
socket |
interestOpsLock, remoteAddress, worker, workerThreadOP_NONE, OP_READ, OP_READ_WRITE, OP_WRITE| Constructor and Description |
|---|
OioDatagramChannel(ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
closeSocket() |
private void |
ensureBound() |
DatagramChannelConfig |
getConfig()
Returns the configuration of this channel.
|
(package private) java.net.InetSocketAddress |
getLocalSocketAddress() |
(package private) java.net.InetSocketAddress |
getRemoteSocketAddress() |
(package private) boolean |
isSocketBound() |
(package private) boolean |
isSocketClosed() |
(package private) boolean |
isSocketConnected() |
ChannelFuture |
joinGroup(java.net.InetAddress multicastAddress)
Joins a multicast group.
|
ChannelFuture |
joinGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface)
Joins the specified multicast group at the specified interface.
|
ChannelFuture |
leaveGroup(java.net.InetAddress multicastAddress)
Leaves a multicast group.
|
ChannelFuture |
leaveGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface)
Leaves a multicast group on a specified local interface.
|
getInternalInterestOps, getLocalAddress, getRemoteAddress, isBound, isConnected, setClosed, setInternalInterestOps, writebind, close, compareTo, connect, disconnect, equals, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getSucceededFuture, getUnsupportedOperationFuture, getUserDefinedWritability, hashCode, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUnwritable, setUserDefinedWritability, setWritable, toString, unbind, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLocalAddress, getRemoteAddressbind, close, connect, disconnect, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getUserDefinedWritability, isBound, isConnected, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUserDefinedWritability, unbind, write, writefinal java.net.MulticastSocket socket
private final DatagramChannelConfig config
OioDatagramChannel(ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink)
public DatagramChannelConfig getConfig()
ChannelgetConfig in interface ChannelgetConfig in interface DatagramChannelpublic ChannelFuture joinGroup(java.net.InetAddress multicastAddress)
DatagramChanneljoinGroup in interface DatagramChannelpublic ChannelFuture joinGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface)
DatagramChanneljoinGroup in interface DatagramChannelprivate void ensureBound()
public ChannelFuture leaveGroup(java.net.InetAddress multicastAddress)
DatagramChannelleaveGroup in interface DatagramChannelpublic ChannelFuture leaveGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface)
DatagramChannelleaveGroup in interface DatagramChannelboolean isSocketBound()
isSocketBound in class AbstractOioChannelboolean isSocketConnected()
isSocketConnected in class AbstractOioChanneljava.net.InetSocketAddress getLocalSocketAddress()
throws java.lang.Exception
getLocalSocketAddress in class AbstractOioChanneljava.lang.Exceptionjava.net.InetSocketAddress getRemoteSocketAddress()
throws java.lang.Exception
getRemoteSocketAddress in class AbstractOioChanneljava.lang.Exceptionvoid closeSocket()
closeSocket in class AbstractOioChannelboolean isSocketClosed()
isSocketClosed in class AbstractOioChannel