public abstract class AbstractOioByteChannel extends AbstractOioChannel
AbstractChannel.AbstractUnsafe
Channel.Unsafe
SO_TIMEOUT
Modifier | Constructor and Description |
---|---|
protected |
AbstractOioByteChannel(Channel parent)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract int |
available()
Deprecated.
Return the number of bytes ready to read from the underlying Socket.
|
protected void |
doRead()
Deprecated.
|
protected abstract int |
doReadBytes(ByteBuf buf)
Deprecated.
Read bytes from the underlying Socket.
|
protected void |
doWrite(ChannelOutboundBuffer in)
Deprecated.
Flush the content of the given buffer to the remote peer.
|
protected abstract void |
doWriteBytes(ByteBuf buf)
Deprecated.
Write the data which is hold by the
ByteBuf to the underlying Socket. |
protected abstract void |
doWriteFileRegion(FileRegion region)
Deprecated.
Write the data which is hold by the
FileRegion to the underlying Socket. |
protected Object |
filterOutboundMessage(Object msg)
Deprecated.
Invoked when a new message is added to a
ChannelOutboundBuffer of this AbstractChannel , so that
the Channel implementation converts the message to another. |
protected abstract boolean |
isInputShutdown()
Deprecated.
Determine if the input side of this channel is shutdown.
|
ChannelMetadata |
metadata()
Deprecated.
|
protected abstract ChannelFuture |
shutdownInput()
Deprecated.
Shutdown the input side of this channel.
|
clearReadPending, doBeginRead, doConnect, isCompatible, isReadPending, newUnsafe, setReadPending
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doBind, doClose, doDeregister, doDisconnect, doRegister, doShutdownOutput, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, localAddress0, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, remoteAddress0, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlush
attr, hasAttr
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
attr, hasAttr
protected AbstractOioByteChannel(Channel parent)
AbstractOioByteChannel(Channel)
public ChannelMetadata metadata()
Channel
protected abstract boolean isInputShutdown()
true
if the input side of this channel is shutdown.protected abstract ChannelFuture shutdownInput()
protected void doRead()
doRead
in class AbstractOioChannel
protected void doWrite(ChannelOutboundBuffer in) throws Exception
AbstractChannel
doWrite
in class AbstractChannel
Exception
protected final Object filterOutboundMessage(Object msg) throws Exception
AbstractChannel
ChannelOutboundBuffer
of this AbstractChannel
, so that
the Channel
implementation converts the message to another. (e.g. heap buffer -> direct buffer)filterOutboundMessage
in class AbstractChannel
Exception
protected abstract int available()
protected abstract int doReadBytes(ByteBuf buf) throws Exception
protected abstract void doWriteBytes(ByteBuf buf) throws Exception
ByteBuf
to the underlying Socket.protected abstract void doWriteFileRegion(FileRegion region) throws Exception
FileRegion
to the underlying Socket.region
- the FileRegion
which holds the data to transferException
- is thrown if an error occurredCopyright © 2008–2024 The Netty Project. All rights reserved.