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
,java.lang.Comparable<Channel>
- Direct Known Subclasses:
AbstractOioByteChannel
,AbstractOioMessageChannel
@Deprecated public abstract class AbstractOioChannel extends AbstractChannel
Deprecated.use NIO / EPOLL / KQUEUE transport.Abstract base class forChannel
implementations that use Old-Blocking-IO
-
-
Nested Class Summary
-
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 Modifier and Type Field Description protected static int
SO_TIMEOUT
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractOioChannel(Channel parent)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
clearReadPending()
Deprecated.Set read pending tofalse
.protected void
doBeginRead()
Deprecated.Schedule a read operation.protected abstract void
doConnect(java.net.SocketAddress remoteAddress, java.net.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
isReadPending()
Deprecated.No longer supported.protected AbstractChannel.AbstractUnsafe
newUnsafe()
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
closeFuture, compareTo, doBind, doClose, doDeregister, doDisconnect, doRegister, doRegister, doShutdownOutput, doWrite, equals, eventLoop, filterOutboundMessage, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, localAddress, localAddress0, maxMessagesPerWrite, newChannelPipeline, newId, parent, pipeline, remoteAddress, remoteAddress0, toString, unsafe, validateFileRegion, voidPromise
-
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
-
Methods inherited from interface io.netty.channel.Channel
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, config, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, getOption, isActive, isOpen, isWritable, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, read, setOption, write, write, writeAndFlush, writeAndFlush
-
-
-
-
Field Detail
-
SO_TIMEOUT
protected static final int SO_TIMEOUT
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractOioChannel
protected AbstractOioChannel(Channel parent)
Deprecated.- See Also:
AbstractChannel(Channel)
-
-
Method Detail
-
newUnsafe
protected AbstractChannel.AbstractUnsafe 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
protected boolean isCompatible(EventLoop loop)
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(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress) throws java.lang.Exception
Deprecated.Connect to the remote peer using the given localAddress if one is specified ornull
otherwise.- Throws:
java.lang.Exception
-
doBeginRead
protected void doBeginRead() throws java.lang.Exception
Deprecated.Description copied from class:AbstractChannel
Schedule a read operation.- Specified by:
doBeginRead
in classAbstractChannel
- Throws:
java.lang.Exception
-
doRead
protected abstract void doRead()
Deprecated.
-
isReadPending
@Deprecated protected boolean isReadPending()
Deprecated.No longer supported. No longer supported.
-
setReadPending
@Deprecated protected void setReadPending(boolean readPending)
Deprecated.UseclearReadPending()
if appropriate instead. No longer supported.
-
clearReadPending
protected final void clearReadPending()
Deprecated.Set read pending tofalse
.
-
-