Class AbstractOioByteChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.oio.AbstractOioChannel
io.netty.channel.oio.AbstractOioByteChannel
- All Implemented Interfaces:
Channel, ChannelOutboundInvoker, AttributeMap, Comparable<Channel>
- Direct Known Subclasses:
OioByteStreamChannel
Deprecated.
use NIO / EPOLL / KQUEUE transport.
Abstract base class for OIO which reads and writes bytes from/to a Socket
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractChannel
AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface Channel
Channel.Unsafe -
Field Summary
Fields inherited from class AbstractOioChannel
SO_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intDeprecated.Return the number of bytes ready to read from the underlying Socket.protected voiddoRead()Deprecated.protected abstract intdoReadBytes(ByteBuf buf) Deprecated.Read bytes from the underlying Socket.protected voidDeprecated.Flush the content of the given buffer to the remote peer.protected abstract voiddoWriteBytes(ByteBuf buf) Deprecated.Write the data which is hold by theByteBufto the underlying Socket.protected abstract voiddoWriteFileRegion(FileRegion region) Deprecated.Write the data which is hold by theFileRegionto the underlying Socket.protected final ObjectDeprecated.Invoked when a new message is added to aChannelOutboundBufferof thisAbstractChannel, so that theChannelimplementation converts the message to another.protected abstract booleanDeprecated.Determine if the input side of this channel is shutdown.metadata()Deprecated.protected abstract ChannelFutureDeprecated.Shutdown the input side of this channel.Methods inherited from class AbstractOioChannel
clearReadPending, doBeginRead, doConnect, isCompatible, isReadPending, newUnsafe, setReadPendingMethods inherited from class AbstractChannel
closeFuture, compareTo, doBind, doClose, doDeregister, doDisconnect, doRegister, doRegister, doShutdownOutput, equals, eventLoop, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, localAddress, localAddress0, maxMessagesPerWrite, newChannelPipeline, newId, parent, pipeline, remoteAddress, remoteAddress0, toString, unsafe, validateFileRegion, voidPromiseMethods inherited from class DefaultAttributeMap
attr, hasAttrMethods inherited from interface AttributeMap
attr, hasAttrMethods inherited from interface Channel
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, config, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, getOption, isActive, isOpen, isWritable, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, read, setOption, write, write, writeAndFlush, writeAndFlush
-
Constructor Details
-
AbstractOioByteChannel
-
-
Method Details
-
metadata
Deprecated.Description copied from interface:Channel -
isInputShutdown
protected abstract boolean isInputShutdown()Deprecated.Determine if the input side of this channel is shutdown.- Returns:
trueif the input side of this channel is shutdown.
-
shutdownInput
Deprecated.Shutdown the input side of this channel.- Returns:
- A channel future that will complete when the shutdown is complete.
-
doRead
-
doWrite
Deprecated.Description copied from class:AbstractChannelFlush the content of the given buffer to the remote peer.- Specified by:
doWritein classAbstractChannel- Throws:
Exception
-
filterOutboundMessage
Deprecated.Description copied from class:AbstractChannelInvoked when a new message is added to aChannelOutboundBufferof thisAbstractChannel, so that theChannelimplementation converts the message to another. (e.g. heap buffer -> direct buffer)- Overrides:
filterOutboundMessagein classAbstractChannel- Throws:
Exception
-
available
protected abstract int available()Deprecated.Return the number of bytes ready to read from the underlying Socket. -
doReadBytes
Deprecated.Read bytes from the underlying Socket. -
doWriteBytes
-
doWriteFileRegion
Deprecated.Write the data which is hold by theFileRegionto the underlying Socket.- Parameters:
region- theFileRegionwhich holds the data to transfer- Throws:
Exception- is thrown if an error occurred
-