Module io.netty5.transport
Package io.netty5.channel
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
-
Interface Summary Interface Description AddressedEnvelope<M,A extends SocketAddress> A message that wraps another message with a sender address and a recipient address.Channel A nexus to a network socket or a component which is capable of I/O operations such as read, write, connect, and bind.ChannelFactory<T extends Channel> Creates a newChannel
.ChannelHandler Handles an I/O event or intercepts an I/O operation, and forwards it to its next handler in itsChannelPipeline
.ChannelHandlerContext Enables aChannelHandler
to interact with itsChannelPipeline
and other handlers.ChannelId Represents the globally unique identifier of aChannel
.ChannelInboundInvoker ChannelOutboundBuffer.MessageProcessor<T extends Exception> ChannelOutboundInvoker ChannelPipeline A list ofChannelHandler
s which handles or intercepts inbound events and outbound operations of aChannel
.EventLoop Will handle all the I/O operations for aIoHandle
once registered.EventLoopGroup SpecialEventExecutorGroup
which allows registeringIoHandle
s that get processed for later selection during the event loop.FileRegion A region of a file that is sent via aChannel
which supports zero-copy file transfer.IoExecutionContext The execution context for anIoHandler
.IoHandle A handle that will process I/O.IoHandler Handles IO dispatching for anEventLoop
All operations exceptIoHandler.wakeup(boolean)
andIoHandler.isCompatible(Class)
MUST be executed on theEventLoop
thread and should never be called from the user-directly.IoHandlerFactory Factory forIoHandler
instances.MaxBytesRecvBufferAllocator RecvBufferAllocator
that limits a read operation based upon a maximum value per individual read and a maximum amount when a read operation is attempted by the event loop.MaxMessagesRecvBufferAllocator RecvBufferAllocator
that limits the number of read operations that will be attempted when a read operation is attempted by the event loop.MessageSizeEstimator Responsible to estimate the size of a message.MessageSizeEstimator.Handle RecvBufferAllocator Allocates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space.RecvBufferAllocator.Handle SelectStrategy Select strategy interface.SelectStrategyFactory Factory that creates a newSelectStrategy
every time.ServerChannel ServerChannelFactory<T extends ServerChannel> Creates a newServerChannel
. -
Class Summary Class Description AbstractChannel<P extends Channel,L extends SocketAddress,R extends SocketAddress> A skeletalChannel
implementation.AbstractChannel.DefaultAbstractChannelPipeline AbstractCoalescingBufferQueue AbstractServerChannel<P extends Channel,L extends SocketAddress,R extends SocketAddress> A skeletal server-sideChannel
implementation.AdaptiveRecvBufferAllocator TheRecvBufferAllocator
that automatically increases and decreases the predicted buffer size on feed back.BufferAddressedEnvelope<A extends SocketAddress,T extends BufferAddressedEnvelope<A,T>> Base class for addressed envelopes that haveBuffer
instances as messages.ChannelFutureListeners FutureContextListener
listeners that take a context, and listens to the result of aFuture
.ChannelHandlerAdapter Skeleton implementation of aChannelHandler
.ChannelInitializer<C extends Channel> A specialChannelHandler
which offers an easy way to initialize aChannel
once it was registered to itsEventLoop
.ChannelMetadata Represents the properties of aChannel
implementation.ChannelOption<T> AChannelOption
allows to configure aChannel
in a type-safe way.ChannelOutboundBuffer (Transport implementors only) an internal data structure used byAbstractChannel
to store its pending outbound write requests.CoalescingBufferQueue A FIFO queue of bytes where producers add bytes by repeatedly addingBuffer
and consumers take bytes in arbitrary lengths.CombinedChannelDuplexHandler<I extends ChannelHandler,O extends ChannelHandler> Combines the inbound handling of oneChannelHandler
with the outbound handling of anotherChannelHandler
.DefaultAddressedEnvelope<M,A extends SocketAddress> The defaultAddressedEnvelope
implementation.DefaultBufferAddressedEnvelope<A extends SocketAddress> The defaultAddressedEnvelope
implementation forBuffer
messages.DefaultChannelId The defaultChannelId
implementation.DefaultChannelPipeline The defaultChannelPipeline
implementation.DefaultFileRegion DefaultMaxBytesRecvBufferAllocator TheRecvBufferAllocator
that yields a buffer size prediction based upon decrementing the value from the max bytes per read.DefaultMaxMessagesRecvBufferAllocator Default implementation ofMaxMessagesRecvBufferAllocator
which respectsChannelOption.AUTO_READ
and also prevents overflow.DefaultMessageSizeEstimator DefaultMessageSizeEstimator
implementation which supports the estimation of the size ofBuffer
andFileRegion
.DefaultSelectStrategyFactory Factory which uses the default select strategy.FixedRecvBufferAllocator TheRecvBufferAllocator
that always yields the same buffer size prediction.MultithreadEventLoopGroup EventLoopGroup
implementation that will handle its tasks with multiple threads.PendingWriteQueue A queue of write operations which are pending for later execution.ReflectiveChannelFactory<T extends Channel> AChannelFactory
that instantiates a newChannel
by invoking its default constructor reflectively.ReflectiveServerChannelFactory<T extends ServerChannel> AChannelFactory
that instantiates a newServerChannel
by invoking its default constructor reflectively.ServerChannelRecvBufferAllocator MaxMessagesRecvBufferAllocator
implementation which should be used forServerChannel
s.SimpleChannelInboundHandler<I> ChannelHandler
which allows to explicit only handle a specific type of messages.SimpleUserEventChannelHandler<I> ChannelHandler
which allows to conveniently only handle a specific type of user events.SingleThreadEventLoop WriteBufferWaterMark WriteBufferWaterMark
is used to set low water mark and high water mark for the write buffer. -
Enum Summary Enum Description ChannelShutdownDirection The direction of a shutdown. -
Exception Summary Exception Description ChannelException ARuntimeException
which is thrown when an I/O operation fails.ChannelOutputShutdownException Used to fail pending writes when a channel's output has been shutdown.ChannelPipelineException AChannelException
which is thrown when aChannelPipeline
failed to execute an operation.ConnectTimeoutException ConnectException
which will be thrown if a connection could not be established because of a connection timeout.EventLoopException SpecialChannelException
which will be thrown byEventLoop
andEventLoopGroup
implementations when an error occurs.