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, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read
beginRead, bind, close, closeForcibly, deregister, disconnect, flush, localAddress, outboundBuffer, recvBufAllocHandle, register, remoteAddress, voidPromise, write
protected 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.