protected abstract class AbstractNioChannel.AbstractNioUnsafe extends AbstractChannel.AbstractUnsafe implements AbstractNioChannel.NioUnsafe
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNioUnsafe() |
| Modifier and Type | Method and Description |
|---|---|
java.nio.channels.SelectableChannel |
ch()
返回底层
SelectableChannel
|
void |
connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, ChannelPromise promise)
连接 Channel指定的ChannelFuture与指定的远程SocketAddress 。
|
void |
finishConnect()
完成连接
|
protected void |
flush0() |
void |
forceFlush() |
protected void |
removeReadOp() |
annotateConnectException, beginRead, bind, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, localAddress, outboundBuffer, prepareToClose, recvBufAllocHandle, register, remoteAddress, safeSetFailure, safeSetSuccess, shutdownOutput, voidPromise, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadbeginRead, bind, close, closeForcibly, deregister, disconnect, flush, localAddress, outboundBuffer, recvBufAllocHandle, register, remoteAddress, voidPromise, writeprotected final void removeReadOp()
public final java.nio.channels.SelectableChannel ch()
AbstractNioChannel.NioUnsafe复制的描述
SelectableChannel
ch在界面
AbstractNioChannel.NioUnsafe
public final void connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
ChannelPromise promise)
Channel.Unsafe
Channel指定的ChannelFuture与指定的远程SocketAddress 。
如果应该使用特定的本地SocketAddress则需要将其作为参数。
否则,只需传递null即可。
一旦连接操作完成, ChannelPromise将会收到通知。
connect在界面
Channel.Unsafe
public final void finishConnect()
AbstractNioChannel.NioUnsafe
finishConnect接口
AbstractNioChannel.NioUnsafe
protected final void flush0()
flush0在课堂上
AbstractChannel.AbstractUnsafe
public final void forceFlush()
forceFlush在界面
AbstractNioChannel.NioUnsafe
Copyright © 2008–2018 The Netty Project. All rights reserved.