Package io.netty.channel.oio
Class AbstractOioChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.oio.AbstractOioChannel
- All Implemented Interfaces:
Channel
,ChannelOutboundInvoker
,AttributeMap
,Comparable<Channel>
- Direct Known Subclasses:
AbstractOioByteChannel
,AbstractOioMessageChannel
Deprecated.
use NIO / EPOLL / KQUEUE transport.
Abstract base class for
Channel
implementations that use Old-Blocking-IO-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class
Deprecated.Nested classes/interfaces inherited from class io.netty.channel.AbstractChannel
AbstractChannel.AbstractUnsafe
Nested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
Deprecated.Set read pending tofalse
.protected void
Deprecated.Schedule a read operation.protected abstract void
doConnect
(SocketAddress remoteAddress, SocketAddress localAddress) Deprecated.Connect to the remote peer using the given localAddress if one is specified ornull
otherwise.protected abstract void
doRead()
Deprecated.protected boolean
isCompatible
(EventLoop loop) Deprecated.Returntrue
if the givenEventLoop
is compatible with this instance.protected boolean
Deprecated.No longer supported.protected AbstractChannel.AbstractUnsafe
Deprecated.Create a newAbstractChannel.AbstractUnsafe
instance which will be used for the life-time of theChannel
protected void
setReadPending
(boolean readPending) Deprecated.UseclearReadPending()
if appropriate instead.Methods inherited from class io.netty.channel.AbstractChannel
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doBind, doClose, doDeregister, doDisconnect, doRegister, doShutdownOutput, doWrite, equals, eventLoop, filterOutboundMessage, 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
Methods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttr
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.util.AttributeMap
attr, hasAttr
-
Field Details
-
SO_TIMEOUT
protected static final int SO_TIMEOUTDeprecated.- See Also:
-
readPending
boolean readPendingDeprecated. -
readWhenInactive
boolean readWhenInactiveDeprecated. -
readTask
Deprecated. -
clearReadPendingRunnable
Deprecated.
-
-
Constructor Details
-
AbstractOioChannel
Deprecated.- See Also:
-
-
Method Details
-
newUnsafe
Deprecated.Description copied from class:AbstractChannel
Create a newAbstractChannel.AbstractUnsafe
instance which will be used for the life-time of theChannel
- Specified by:
newUnsafe
in classAbstractChannel
-
isCompatible
Deprecated.Description copied from class:AbstractChannel
Returntrue
if the givenEventLoop
is compatible with this instance.- Specified by:
isCompatible
in classAbstractChannel
-
doConnect
protected abstract void doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception Deprecated.Connect to the remote peer using the given localAddress if one is specified ornull
otherwise.- Throws:
Exception
-
doBeginRead
Deprecated.Description copied from class:AbstractChannel
Schedule a read operation.- Specified by:
doBeginRead
in classAbstractChannel
- Throws:
Exception
-
doRead
protected abstract void doRead()Deprecated. -
isReadPending
Deprecated.No longer supported. No longer supported. -
setReadPending
Deprecated.UseclearReadPending()
if appropriate instead. No longer supported. -
clearReadPending
protected final void clearReadPending()Deprecated.Set read pending tofalse
.
-