public abstract class AbstractOioByteChannel extends AbstractOioChannel
AbstractChannel.AbstractUnsafe
Channel.Unsafe
SO_TIMEOUT
限定符 | 构造器和说明 |
---|---|
protected |
AbstractOioByteChannel(Channel parent)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
protected abstract int |
available()
已过时。
Return the number of bytes ready to read from the underlying Socket.
|
protected void |
doRead()
已过时。
|
protected abstract int |
doReadBytes(ByteBuf buf)
已过时。
Read bytes from the underlying Socket.
|
protected void |
doWrite(ChannelOutboundBuffer in)
已过时。
Flush the content of the given buffer to the remote peer.
|
protected abstract void |
doWriteBytes(ByteBuf buf)
已过时。
Write the data which is hold by the
ByteBuf to the underlying Socket. |
protected abstract void |
doWriteFileRegion(FileRegion region)
已过时。
Write the data which is hold by the
FileRegion to the underlying Socket. |
protected java.lang.Object |
filterOutboundMessage(java.lang.Object msg)
已过时。
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()
已过时。
Determine if the input side of this channel is shutdown.
|
ChannelMetadata |
metadata()
已过时。
|
protected abstract ChannelFuture |
shutdownInput()
已过时。
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
attr, hasAttr
protected AbstractOioByteChannel(Channel parent)
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
在类中 AbstractOioChannel
protected void doWrite(ChannelOutboundBuffer in) throws java.lang.Exception
AbstractChannel
doWrite
在类中 AbstractChannel
java.lang.Exception
protected final java.lang.Object filterOutboundMessage(java.lang.Object msg) throws java.lang.Exception
AbstractChannel
ChannelOutboundBuffer
of this AbstractChannel
, so that
the Channel
implementation converts the message to another. (e.g. heap buffer -> direct buffer)filterOutboundMessage
在类中 AbstractChannel
java.lang.Exception
protected abstract int available()
protected abstract int doReadBytes(ByteBuf buf) throws java.lang.Exception
buf
- the ByteBuf
into which the read bytes will be writtenjava.lang.Exception
- is thrown if an error occurredprotected abstract void doWriteBytes(ByteBuf buf) throws java.lang.Exception
ByteBuf
to the underlying Socket.buf
- the ByteBuf
which holds the data to transferjava.lang.Exception
- is thrown if an error occurredprotected abstract void doWriteFileRegion(FileRegion region) throws java.lang.Exception
FileRegion
to the underlying Socket.region
- the FileRegion
which holds the data to transferjava.lang.Exception
- is thrown if an error occurred