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.
use NIO / EPOLL / KQUEUE transport.
Abstract base class for
Channel implementations that use Old-Blocking-IO-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classDeprecated.Nested classes/interfaces inherited from class AbstractChannel
AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface Channel
Channel.Unsafe -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.lang.RunnableDeprecated.(package private) booleanDeprecated.(package private) final java.lang.RunnableDeprecated.(package private) booleanDeprecated.protected static final intDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidDeprecated.Set read pending tofalse.protected voidDeprecated.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 booleanDeprecated.No longer supported.protected AbstractChannel.AbstractUnsafeDeprecated.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 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, voidPromiseMethods inherited from class DefaultAttributeMap
attr, hasAttrMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, read, setOption, write, write, writeAndFlush, writeAndFlush
-
Field Details
-
SO_TIMEOUT
protected static final int SO_TIMEOUTDeprecated.- See Also:
-
readPending
boolean readPendingDeprecated. -
readWhenInactive
boolean readWhenInactiveDeprecated. -
readTask
final java.lang.Runnable readTaskDeprecated. -
clearReadPendingRunnable
private final java.lang.Runnable clearReadPendingRunnableDeprecated.
-
-
Constructor Details
-
AbstractOioChannel
-
-
Method Details
-
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
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.Exception Deprecated.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.
-