public class AioServerSocketChannel extends AbstractChannel implements ServerSocketChannel
AbstractChannel.AbstractUnsafeChannel.Unsafe| Modifier and Type | Field and Description |
|---|---|
protected ChannelFuture |
connectFuture
The future of the current connection attempt.
|
protected ScheduledFuture<?> |
connectTimeoutFuture |
protected AioEventLoopGroup |
group |
flushFutureNotifier| Constructor and Description |
|---|
AioServerSocketChannel(AioEventLoopGroup group) |
AioServerSocketChannel(AioEventLoopGroup parentGroup,
AioEventLoopGroup childGroup) |
| Modifier and Type | Method and Description |
|---|---|
ServerSocketChannelConfig |
config()
Returns the configuration of this channel.
|
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected void |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress,
ChannelFuture future) |
protected void |
doDeregister() |
protected void |
doDisconnect() |
protected Runnable |
doRegister() |
boolean |
isActive() |
protected boolean |
isCompatible(EventLoop loop) |
protected boolean |
isFlushPending() |
boolean |
isOpen() |
protected AsynchronousServerSocketChannel |
javaChannel() |
InetSocketAddress |
localAddress()
Returns the local address where this channel is bound to.
|
protected SocketAddress |
localAddress0() |
ChannelMetadata |
metadata()
|
protected Channel.Unsafe |
newUnsafe() |
InetSocketAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
protected SocketAddress |
remoteAddress0() |
bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doFlushByteBuffer, doFlushMessageBuffer, doPreClose, equals, eventLoop, flush, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, newFailedFuture, newFuture, newSucceededFuture, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, toString, unsafe, write, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitlocalAddress, remoteAddresscloseFuture, eventLoop, id, isOpen, isRegistered, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, flush, write, writenewFailedFuture, newFuture, newSucceededFuturecompareToprotected final AioEventLoopGroup group
protected ChannelFuture connectFuture
protected ScheduledFuture<?> connectTimeoutFuture
public AioServerSocketChannel(AioEventLoopGroup group)
public AioServerSocketChannel(AioEventLoopGroup parentGroup, AioEventLoopGroup childGroup)
protected AsynchronousServerSocketChannel javaChannel()
public ChannelMetadata metadata()
Channelprotected SocketAddress localAddress0()
localAddress0 in class AbstractChannelprotected SocketAddress remoteAddress0()
remoteAddress0 in class AbstractChannelprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class AbstractChannelExceptionprotected void doClose()
throws Exception
doClose in class AbstractChannelExceptionprotected boolean isFlushPending()
isFlushPending in class AbstractChannelprotected void doConnect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelFuture future)
protected void doDisconnect()
throws Exception
doDisconnect in class AbstractChannelExceptionpublic ServerSocketChannelConfig config()
Channelconfig in interface Channelconfig in interface ServerSocketChannelprotected Channel.Unsafe newUnsafe()
newUnsafe in class AbstractChannelpublic 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 boolean isOpen()
protected void doDeregister()
throws Exception
doDeregister in class AbstractChannelExceptionprotected boolean isCompatible(EventLoop loop)
isCompatible in class AbstractChannelCopyright © 2008-2012 The Netty Project. All Rights Reserved.