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 forChannelimplementations 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 intSO_TIMEOUTDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOioChannel(Channel parent)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidclearReadPending()Deprecated.Set read pending tofalse.protected voiddoBeginRead()Deprecated.Schedule a read operation.protected abstract voiddoConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)Deprecated.Connect to the remote peer using the given localAddress if one is specified ornullotherwise.protected abstract voiddoRead()Deprecated.protected booleanisCompatible(EventLoop loop)Deprecated.Returntrueif the givenEventLoopis compatible with this instance.protected booleanisReadPending()Deprecated.No longer supported.protected AbstractChannel.AbstractUnsafenewUnsafe()Deprecated.Create a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannelprotected voidsetReadPending(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:AbstractChannelCreate a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannel- Specified by:
newUnsafein classAbstractChannel
-
isCompatible
protected boolean isCompatible(EventLoop loop)
Deprecated.Description copied from class:AbstractChannelReturntrueif the givenEventLoopis compatible with this instance.- Specified by:
isCompatiblein classAbstractChannel
-
doConnect
protected abstract void doConnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress) throws java.lang.ExceptionDeprecated.Connect to the remote peer using the given localAddress if one is specified ornullotherwise.- Throws:
java.lang.Exception
-
doBeginRead
protected void doBeginRead() throws java.lang.ExceptionDeprecated.Description copied from class:AbstractChannelSchedule a read operation.- Specified by:
doBeginReadin 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.
-
-