protected abstract class AbstractNioChannel.AbstractNioUnsafe extends AbstractChannel.AbstractUnsafe implements AbstractNioChannel.NioUnsafe
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNioChannel.AbstractNioUnsafe() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginRead()
Schedules a read operation that fills the inbound buffer of the first
ChannelInboundHandler in the
ChannelPipeline. |
SelectableChannel |
ch()
Return underlying
SelectableChannel |
void |
connect(SocketAddress remoteAddress,
SocketAddress localAddress,
ChannelPromise promise)
|
void |
finishConnect()
Finish connect
|
protected void |
flush0() |
void |
forceFlush() |
protected void |
removeReadOp() |
bind, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, localAddress, outboundBuffer, register, remoteAddress, safeSetFailure, safeSetSuccess, voidPromise, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadbind, close, closeForcibly, deregister, disconnect, flush, localAddress, outboundBuffer, register, remoteAddress, voidPromise, writeprotected AbstractNioChannel.AbstractNioUnsafe()
protected final void removeReadOp()
public void beginRead()
Channel.UnsafeChannelInboundHandler in the
ChannelPipeline. If there's already a pending read operation, this method does nothing.beginRead in interface Channel.UnsafebeginRead in class AbstractChannel.AbstractUnsafepublic SelectableChannel ch()
AbstractNioChannel.NioUnsafeSelectableChannelch in interface AbstractNioChannel.NioUnsafepublic void connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise)
Channel.UnsafeChannel of the given ChannelFuture with the given remote SocketAddress.
If a specific local SocketAddress should be used it need to be given as argument. Otherwise just
pass null to it.
The ChannelPromise will get notified once the connect operation was complete.connect in interface Channel.Unsafepublic void finishConnect()
AbstractNioChannel.NioUnsafefinishConnect in interface AbstractNioChannel.NioUnsafeprotected void flush0()
flush0 in class AbstractChannel.AbstractUnsafepublic void forceFlush()
forceFlush in interface AbstractNioChannel.NioUnsafeCopyright © 2008–2014 The Netty Project. All rights reserved.