public abstract class AbstractKQueueStreamChannel
extends io.netty.channel.AbstractChannel
implements io.netty.channel.socket.DuplexChannel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkResolvable(InetSocketAddress addr) |
abstract KQueueChannelConfig |
config() |
protected void |
doBeginRead() |
protected void |
doBind(SocketAddress local) |
protected void |
doClose() |
protected boolean |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress)
Connect to the remote peer
|
protected boolean |
doConnect0(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected void |
doDeregister() |
protected void |
doDisconnect() |
protected int |
doReadBytes(io.netty.buffer.ByteBuf byteBuf)
Read bytes into the given
ByteBuf and return the amount. |
protected void |
doRegister() |
protected void |
doShutdownOutput() |
protected void |
doWrite(io.netty.channel.ChannelOutboundBuffer in) |
protected int |
doWriteBytes(io.netty.channel.ChannelOutboundBuffer in,
io.netty.buffer.ByteBuf buf) |
protected int |
doWriteSingle(io.netty.channel.ChannelOutboundBuffer in)
Attempt to write a single object.
|
io.netty.channel.unix.FileDescriptor |
fd() |
protected Object |
filterOutboundMessage(Object msg) |
boolean |
isActive() |
protected boolean |
isCompatible(io.netty.channel.EventLoop loop) |
boolean |
isInputShutdown() |
boolean |
isOpen() |
boolean |
isOutputShutdown() |
boolean |
isShutdown() |
protected SocketAddress |
localAddress0() |
io.netty.channel.ChannelMetadata |
metadata() |
protected io.netty.buffer.ByteBuf |
newDirectBuffer(io.netty.buffer.ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf, and releases the original one. |
protected io.netty.buffer.ByteBuf |
newDirectBuffer(Object holder,
io.netty.buffer.ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf, and releases the specified holder. |
protected io.netty.channel.kqueue.AbstractKQueueChannel.AbstractKQueueUnsafe |
newUnsafe() |
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) |
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlushclone, finalize, getClass, notify, notifyAll, wait, wait, waitalloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, config, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, localAddress, parent, pipeline, read, remoteAddress, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlushcompareToprotected io.netty.channel.kqueue.AbstractKQueueChannel.AbstractKQueueUnsafe newUnsafe()
public io.netty.channel.ChannelMetadata metadata()
metadata in interface io.netty.channel.Channelprotected void doWrite(io.netty.channel.ChannelOutboundBuffer in)
throws Exception
doWrite in class io.netty.channel.AbstractChannelExceptionprotected int doWriteSingle(io.netty.channel.ChannelOutboundBuffer in)
throws Exception
in - the collection which contains objects to write.ChannelConfig.getWriteSpinCount(). The typical use cases are as follows:
ByteBuf (or other empty content)
is encounteredChannelUtils.WRITE_STATUS_SNDBUF_FULL - if an attempt to write data was made to the OS, but no
data was acceptedException - If an I/O error occurs.protected Object filterOutboundMessage(Object msg)
filterOutboundMessage in class io.netty.channel.AbstractChannel@UnstableApi
protected final void doShutdownOutput()
throws Exception
doShutdownOutput in class io.netty.channel.AbstractChannelExceptionpublic boolean isOutputShutdown()
isOutputShutdown in interface io.netty.channel.socket.DuplexChannelpublic boolean isInputShutdown()
isInputShutdown in interface io.netty.channel.socket.DuplexChannelpublic boolean isShutdown()
isShutdown in interface io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdownOutput()
shutdownOutput in interface io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdownOutput(io.netty.channel.ChannelPromise promise)
shutdownOutput in interface io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdownInput()
shutdownInput in interface io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdownInput(io.netty.channel.ChannelPromise promise)
shutdownInput in interface io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdown()
shutdown in interface io.netty.channel.socket.DuplexChannelpublic io.netty.channel.ChannelFuture shutdown(io.netty.channel.ChannelPromise promise)
shutdown in interface io.netty.channel.socket.DuplexChannelpublic final io.netty.channel.unix.FileDescriptor fd()
fd in interface io.netty.channel.unix.UnixChannelpublic boolean isActive()
isActive in interface io.netty.channel.Channelprotected void doClose()
throws Exception
doClose in class io.netty.channel.AbstractChannelExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class io.netty.channel.AbstractChannelExceptionprotected boolean isCompatible(io.netty.channel.EventLoop loop)
isCompatible in class io.netty.channel.AbstractChannelpublic boolean isOpen()
isOpen in interface io.netty.channel.Channelprotected void doDeregister()
throws Exception
doDeregister in class io.netty.channel.AbstractChannelExceptionprotected final void doBeginRead()
throws Exception
doBeginRead in class io.netty.channel.AbstractChannelExceptionprotected void doRegister()
throws Exception
doRegister in class io.netty.channel.AbstractChannelExceptionpublic abstract KQueueChannelConfig config()
config in interface io.netty.channel.Channelprotected final io.netty.buffer.ByteBuf newDirectBuffer(io.netty.buffer.ByteBuf buf)
ByteBuf, and releases the original one.protected final io.netty.buffer.ByteBuf newDirectBuffer(Object holder, io.netty.buffer.ByteBuf buf)
ByteBuf, and releases the specified holder.
The caller must ensure that the holder releases the original ByteBuf when the holder is released by
this method.protected static void checkResolvable(InetSocketAddress addr)
protected final int doReadBytes(io.netty.buffer.ByteBuf byteBuf)
throws Exception
ByteBuf and return the amount.Exceptionprotected final int doWriteBytes(io.netty.channel.ChannelOutboundBuffer in,
io.netty.buffer.ByteBuf buf)
throws Exception
Exceptionprotected void doBind(SocketAddress local) throws Exception
doBind in class io.netty.channel.AbstractChannelExceptionprotected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
Exceptionprotected boolean doConnect0(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
Exceptionprotected SocketAddress localAddress0()
localAddress0 in class io.netty.channel.AbstractChannelprotected SocketAddress remoteAddress0()
remoteAddress0 in class io.netty.channel.AbstractChannelCopyright © 2008–2025 The Netty Project. All rights reserved.