public abstract class AbstractNioChannel extends AbstractChannel
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractNioChannel.AbstractNioUnsafe |
static interface |
AbstractNioChannel.NioUnsafe |
AbstractChannel.AbstractUnsafeChannel.UnsafeflushFutureNotifier| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNioChannel(Channel parent,
Integer id,
SelectableChannel ch,
int readInterestOp) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected void |
doDeregister() |
protected abstract void |
doFinishConnect() |
protected Runnable |
doRegister() |
protected boolean |
isCompatible(EventLoop loop) |
protected boolean |
isFlushPending() |
boolean |
isOpen() |
protected SelectableChannel |
javaChannel() |
InetSocketAddress |
localAddress()
Returns the local address where this channel is bound to.
|
InetSocketAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
protected SelectionKey |
selectionKey() |
AbstractNioChannel.NioUnsafe |
unsafe()
Caution for transport implementations use only!
|
bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doBind, doClose, doDisconnect, doFlushByteBuffer, doFlushMessageBuffer, doPreClose, equals, eventLoop, flush, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, localAddress0, newFailedFuture, newFuture, newSucceededFuture, newUnsafe, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, remoteAddress0, toString, write, writeprotected AbstractNioChannel(Channel parent, Integer id, SelectableChannel ch, int readInterestOp)
public boolean isOpen()
public InetSocketAddress localAddress()
ChannelSocketAddress is supposed to be down-cast into more concrete
type such as InetSocketAddress to retrieve the detailed
information.localAddress in interface ChannellocalAddress in class AbstractChannelnull if this channel is not bound.public InetSocketAddress remoteAddress()
ChannelSocketAddress is supposed to be down-cast into more
concrete type such as InetSocketAddress to retrieve the detailed
information.remoteAddress in interface ChannelremoteAddress in class AbstractChannelnull if this channel is not connected.
If this channel is not connected but it can receive messages
from arbitrary remote addresses (e.g. DatagramChannel,
use MessageEvent#getRemoteAddress() to determine
the origination of the received message as this method will
return null.public AbstractNioChannel.NioUnsafe unsafe()
Channelunsafe in interface Channelunsafe in class AbstractChannelprotected SelectableChannel javaChannel()
protected SelectionKey selectionKey()
protected boolean isCompatible(EventLoop loop)
isCompatible in class AbstractChannelprotected boolean isFlushPending()
isFlushPending in class AbstractChannelprotected Runnable doRegister() throws Exception
doRegister in class AbstractChannelExceptionprotected void doDeregister()
throws Exception
doDeregister in class AbstractChannelExceptionprotected abstract boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.