public class NioSocketChannel
extends io.netty.channel.nio.AbstractNioByteChannel
implements io.netty.channel.socket.SocketChannel
SocketChannel which uses NIO selector based implementation.io.netty.channel.nio.AbstractNioByteChannel.NioByteUnsafe| 限定符和类型 | 字段和说明 |
|---|---|
static io.prometheus.client.Histogram |
socketReadBytes |
static io.prometheus.client.Histogram |
socketReadDuration |
static io.prometheus.client.Histogram |
socketReadLeftBytes |
static io.prometheus.client.Histogram |
socketWriteBytes |
static io.prometheus.client.Histogram |
socketWriteDuration |
static io.prometheus.client.Histogram |
socketWriteLeftBytes |
static io.prometheus.client.Histogram |
socketWrittenBytes |
| 构造器和说明 |
|---|
NioSocketChannel()
Create a new instance
|
NioSocketChannel(io.netty.channel.Channel parent,
SocketChannel socket)
Create a new instance
|
NioSocketChannel(SelectorProvider provider)
Create a new instance using the given
SelectorProvider. |
NioSocketChannel(SocketChannel socket)
Create a new instance using the given
SocketChannel. |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.channel.socket.SocketChannelConfig |
config() |
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected boolean |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected void |
doDisconnect() |
protected void |
doFinishConnect() |
protected int |
doReadBytes(io.netty.buffer.ByteBuf byteBuf) |
protected void |
doShutdownOutput() |
protected void |
doWrite(io.netty.channel.ChannelOutboundBuffer in) |
protected int |
doWriteBytes(io.netty.buffer.ByteBuf buf) |
protected long |
doWriteFileRegion(io.netty.channel.FileRegion region) |
boolean |
isActive() |
boolean |
isInputShutdown() |
protected boolean |
isInputShutdown0() |
boolean |
isOutputShutdown() |
boolean |
isShutdown() |
protected SocketChannel |
javaChannel() |
InetSocketAddress |
localAddress() |
protected SocketAddress |
localAddress0() |
protected io.netty.channel.nio.AbstractNioChannel.AbstractNioUnsafe |
newUnsafe() |
io.netty.channel.socket.ServerSocketChannel |
parent() |
InetSocketAddress |
remoteAddress() |
protected SocketAddress |
remoteAddress0() |
io.netty.channel.ChannelFuture |
shutdown() |
io.netty.channel.ChannelFuture |
shutdown(io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
shutdownInput() |
io.netty.channel.ChannelFuture |
shutdownInput(io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
shutdownOutput() |
io.netty.channel.ChannelFuture |
shutdownOutput(io.netty.channel.ChannelPromise promise) |
clearOpWrite, doWrite0, filterOutboundMessage, incompleteWrite, metadata, setOpWriteclearReadPending, doBeginRead, doDeregister, doRegister, eventLoop, isCompatible, isOpen, isReadPending, newDirectBuffer, newDirectBuffer, selectionKey, setReadPending, unsafealloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, equals, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, toString, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlushalloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isOpen, isRegistered, isWritable, metadata, pipeline, read, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlushcompareTopublic static final io.prometheus.client.Histogram socketWriteDuration
public static final io.prometheus.client.Histogram socketWriteBytes
public static final io.prometheus.client.Histogram socketWrittenBytes
public static final io.prometheus.client.Histogram socketWriteLeftBytes
public static final io.prometheus.client.Histogram socketReadDuration
public static final io.prometheus.client.Histogram socketReadBytes
public static final io.prometheus.client.Histogram socketReadLeftBytes
public NioSocketChannel()
public NioSocketChannel(SelectorProvider provider)
SelectorProvider.public NioSocketChannel(SocketChannel socket)
SocketChannel.public NioSocketChannel(io.netty.channel.Channel parent,
SocketChannel socket)
parent - the Channel which created this instance or null if it was created
by the usersocket - the SocketChannel which will be usedpublic io.netty.channel.socket.ServerSocketChannel parent()
parent 在接口中 io.netty.channel.Channelparent 在接口中 io.netty.channel.socket.SocketChannelparent 在类中 io.netty.channel.AbstractChannelpublic io.netty.channel.socket.SocketChannelConfig config()
config 在接口中 io.netty.channel.Channelconfig 在接口中 io.netty.channel.socket.SocketChannelprotected SocketChannel javaChannel()
javaChannel 在类中 io.netty.channel.nio.AbstractNioChannelpublic boolean isActive()
isActive 在接口中 io.netty.channel.Channelpublic boolean isOutputShutdown()
isOutputShutdown 在接口中 io.netty.channel.socket.DuplexChannelpublic boolean isInputShutdown()
isInputShutdown 在接口中 io.netty.channel.socket.DuplexChannelpublic boolean isShutdown()
isShutdown 在接口中 io.netty.channel.socket.DuplexChannelpublic InetSocketAddress localAddress()
localAddress 在接口中 io.netty.channel.ChannellocalAddress 在接口中 io.netty.channel.socket.SocketChannellocalAddress 在类中 io.netty.channel.AbstractChannelpublic InetSocketAddress remoteAddress()
remoteAddress 在接口中 io.netty.channel.ChannelremoteAddress 在接口中 io.netty.channel.socket.SocketChannelremoteAddress 在类中 io.netty.channel.AbstractChannel@UnstableApi
protected final void doShutdownOutput()
throws Exception
doShutdownOutput 在类中 io.netty.channel.AbstractChannelExceptionpublic io.netty.channel.ChannelFuture shutdownOutput()
shutdownOutput 在接口中 io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdownOutput(io.netty.channel.ChannelPromise promise)
shutdownOutput 在接口中 io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdownInput()
shutdownInput 在接口中 io.netty.channel.socket.DuplexChannelshutdownInput 在类中 io.netty.channel.nio.AbstractNioByteChannelprotected boolean isInputShutdown0()
isInputShutdown0 在类中 io.netty.channel.nio.AbstractNioByteChannelpublic io.netty.channel.ChannelFuture shutdownInput(io.netty.channel.ChannelPromise promise)
shutdownInput 在接口中 io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdown()
shutdown 在接口中 io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdown(io.netty.channel.ChannelPromise promise)
shutdown 在接口中 io.netty.channel.socket.DuplexChannelprotected SocketAddress localAddress0()
localAddress0 在类中 io.netty.channel.AbstractChannelprotected SocketAddress remoteAddress0()
remoteAddress0 在类中 io.netty.channel.AbstractChannelprotected void doBind(SocketAddress localAddress) throws Exception
doBind 在类中 io.netty.channel.AbstractChannelExceptionprotected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
doConnect 在类中 io.netty.channel.nio.AbstractNioChannelExceptionprotected void doFinishConnect()
throws Exception
doFinishConnect 在类中 io.netty.channel.nio.AbstractNioChannelExceptionprotected void doDisconnect()
throws Exception
doDisconnect 在类中 io.netty.channel.AbstractChannelExceptionprotected void doClose()
throws Exception
doClose 在类中 io.netty.channel.nio.AbstractNioChannelExceptionprotected int doReadBytes(io.netty.buffer.ByteBuf byteBuf)
throws Exception
doReadBytes 在类中 io.netty.channel.nio.AbstractNioByteChannelExceptionprotected int doWriteBytes(io.netty.buffer.ByteBuf buf)
throws Exception
doWriteBytes 在类中 io.netty.channel.nio.AbstractNioByteChannelExceptionprotected long doWriteFileRegion(io.netty.channel.FileRegion region)
throws Exception
doWriteFileRegion 在类中 io.netty.channel.nio.AbstractNioByteChannelExceptionprotected void doWrite(io.netty.channel.ChannelOutboundBuffer in)
throws Exception
doWrite 在类中 io.netty.channel.nio.AbstractNioByteChannelExceptionprotected io.netty.channel.nio.AbstractNioChannel.AbstractNioUnsafe newUnsafe()
newUnsafe 在类中 io.netty.channel.nio.AbstractNioByteChannelCopyright © 2023 PingCAP. All rights reserved.