public abstract class AbstractServerChannel extends AbstractChannel implements ServerChannel
Channel implementation. A server-side
Channel does not allow the following operations:
AbstractChannel.connect(SocketAddress, ChannelFuture)AbstractChannel.disconnect(ChannelFuture)AbstractChannel.flush(ChannelFuture)| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractServerChannel.AbstractServerUnsafe |
AbstractChannel.AbstractUnsafeChannel.UnsafeflushFutureNotifier| Modifier | Constructor and Description |
|---|---|
protected |
AbstractServerChannel(Integer id)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDisconnect() |
protected void |
doFlushByteBuffer(io.netty.buffer.ByteBuf buf) |
protected void |
doFlushMessageBuffer(io.netty.buffer.MessageBuf<Object> buf) |
protected boolean |
isFlushPending() |
ChannelMetadata |
metadata()
|
io.netty.buffer.ByteBuf |
outboundByteBuffer() |
io.netty.buffer.MessageBuf<Object> |
outboundMessageBuffer() |
SocketAddress |
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, doBind, doClose, doDeregister, doPreClose, doRegister, equals, eventLoop, flush, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isCompatible, isRegistered, localAddress, localAddress0, newFailedFuture, newFuture, newSucceededFuture, newUnsafe, parent, pipeline, toString, unsafe, write, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcloseFuture, config, eventLoop, id, isActive, isOpen, isRegistered, localAddress, parent, pipeline, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, flush, write, writenewFailedFuture, newFuture, newSucceededFuturecompareToprotected AbstractServerChannel(Integer id)
public io.netty.buffer.ByteBuf outboundByteBuffer()
outboundByteBuffer in interface ChanneloutboundByteBuffer in class AbstractChannelpublic io.netty.buffer.MessageBuf<Object> outboundMessageBuffer()
outboundMessageBuffer in interface ChanneloutboundMessageBuffer in class AbstractChannelpublic ChannelMetadata metadata()
Channelpublic SocketAddress 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.protected SocketAddress remoteAddress0()
remoteAddress0 in class AbstractChannelprotected void doDisconnect()
throws Exception
doDisconnect in class AbstractChannelExceptionprotected void doFlushByteBuffer(io.netty.buffer.ByteBuf buf)
throws Exception
doFlushByteBuffer in class AbstractChannelExceptionprotected void doFlushMessageBuffer(io.netty.buffer.MessageBuf<Object> buf) throws Exception
doFlushMessageBuffer in class AbstractChannelExceptionprotected boolean isFlushPending()
isFlushPending in class AbstractChannelCopyright © 2008-2012 The Netty Project. All Rights Reserved.