Package | Description |
---|---|
io.netty.buffer |
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
|
io.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
io.netty.channel.epoll |
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
|
io.netty.channel.nio |
NIO-based channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.oio |
Old blocking I/O based channel API implementation - recommended for
a small number of connections (< 1000).
|
io.netty.channel.sctp |
Abstract SCTP socket interfaces which extend the core channel API.
|
io.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
io.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.socket.oio |
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
|
io.netty.channel.unix |
Unix specific transport.
|
io.netty.handler.codec |
Extensible decoder and its common implementations which deal with the
packet fragmentation and reassembly issue found in a stream-based transport
such as TCP/IP.
|
io.netty.handler.codec.base64 | |
io.netty.handler.codec.bytes |
Encoder and decoder which transform an array of bytes into a
ByteBuf and vice versa. |
io.netty.handler.codec.compression | |
io.netty.handler.codec.haproxy |
Decodes an HAProxy proxy protocol header
|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
io.netty.handler.codec.http.multipart |
HTTP multipart support.
|
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
io.netty.handler.codec.rtsp |
An RTSP
extension based on the HTTP codec.
|
io.netty.handler.codec.sctp |
Decoder and encoders to manage message completion and multi-streaming codec in SCTP/IP.
|
io.netty.handler.codec.serialization |
Encoder, decoder and their compatibility stream implementations which
transform a
Serializable object into a byte buffer and
vice versa. |
io.netty.handler.codec.socks |
Encoder, decoder and their related message types for Socks.
|
io.netty.handler.codec.spdy |
Encoder, decoder, session handler and their related message types for the SPDY protocol.
|
io.netty.handler.codec.string |
Encoder and decoder which transform a
String into a
ByteBuf and vice versa. |
io.netty.handler.logging |
Logs a
io.netty.channel.ChannelEvent for debugging purpose. |
io.netty.handler.ssl |
SSL ·
TLS implementation based on
SSLEngine |
io.netty.handler.stream |
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError . |
Class and Description |
---|
AbstractByteBuf
A skeletal implementation of a buffer.
|
AbstractByteBufAllocator
Skeletal
ByteBufAllocator implementation to extend. |
AbstractDerivedByteBuf
Deprecated.
Do not use.
|
AbstractReferenceCountedByteBuf
Abstract base class for
ByteBuf implementations that count references. |
AbstractUnsafeSwappedByteBuf
Special
SwappedByteBuf for ByteBuf s that is using unsafe. |
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
ByteBufHolder
A packet which is send or receive.
|
ByteBufProcessor |
ByteBufUtil.ThreadLocalDirectByteBuf |
ByteBufUtil.ThreadLocalUnsafeDirectByteBuf |
CompositeByteBuf
A virtual buffer which shows multiple buffers as a single merged buffer.
|
CompositeByteBuf.Component |
DuplicatedByteBuf
Deprecated.
Do not use.
|
EmptyByteBuf
An empty
ByteBuf whose capacity and maximum capacity are all 0 . |
FixedCompositeByteBuf.Component |
PoolArena |
PoolArena.SizeClass |
PoolArenaMetric
Expose metrics for an arena.
|
PoolChunk
Description of algorithm for PageRun/PoolSubpage allocation from PoolChunk
Notation: The following terms are important to understand the code
> page - a page is the smallest unit of memory chunk that can be allocated
> chunk - a chunk is a collection of pages
> in this code chunkSize = 2^{maxOrder} * pageSize
To begin we allocate a byte array of size = chunkSize
Whenever a ByteBuf of given size needs to be created we search for the first position
in the byte array that has enough empty space to accommodate the requested size and
return a (long) handle that encodes this offset information, (this memory segment is then
marked as reserved so it is always used by exactly one ByteBuf and no more)
For simplicity all sizes are normalized according to PoolArena#normalizeCapacity method
This ensures that when we request for memory segments of size >= pageSize the normalizedCapacity
equals the next nearest power of 2
To search for the first offset in chunk that has at least requested size available we construct a
complete balanced binary tree and store it in an array (just like heaps) - memoryMap
The tree looks like this (the size of each node being mentioned in the parenthesis)
depth=0 1 node (chunkSize)
depth=1 2 nodes (chunkSize/2)
..
|
PoolChunkList |
PoolChunkListMetric
Metrics for a list of chunks.
|
PoolChunkMetric
Metrics for a chunk.
|
PooledByteBuf |
PooledByteBufAllocator |
PooledByteBufAllocator.PoolThreadLocalCache |
PooledDirectByteBuf |
PooledHeapByteBuf |
PooledUnsafeDirectByteBuf |
PooledUnsafeHeapByteBuf |
PoolSubpage |
PoolSubpageMetric
Metrics for a sub-page.
|
PoolThreadCache
Acts a Thread cache for allocations.
|
PoolThreadCache.MemoryRegionCache |
PoolThreadCache.MemoryRegionCache.Entry |
ReadOnlyByteBufferBuf
Read-only ByteBuf which wraps a read-only ByteBuffer.
|
SlicedByteBuf
Deprecated.
Do not use.
|
SwappedByteBuf
Wrapper which swap the
ByteOrder of a ByteBuf . |
UnpooledByteBufAllocator
Simplistic
ByteBufAllocator implementation that does not pool anything. |
UnpooledDirectByteBuf
A NIO
ByteBuffer based buffer. |
UnpooledHeapByteBuf
Big endian Java heap buffer implementation.
|
UnpooledUnsafeDirectByteBuf
A NIO
ByteBuffer based buffer. |
WrappedByteBuf
Wraps another
ByteBuf . |
WrappedCompositeByteBuf |
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
CompositeByteBuf
A virtual buffer which shows multiple buffers as a single merged buffer.
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
ByteBufHolder
A packet which is send or receive.
|
DefaultByteBufHolder
Default implementation of a
ByteBufHolder that holds it's data in a ByteBuf . |
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
ByteBufHolder
A packet which is send or receive.
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
Class and Description |
---|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
ByteBufProcessor |
SwappedByteBuf
Wrapper which swap the
ByteOrder of a ByteBuf . |
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufHolder
A packet which is send or receive.
|
ByteBufProcessor |
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufHolder
A packet which is send or receive.
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufHolder
A packet which is send or receive.
|
ByteBufProcessor |
DefaultByteBufHolder
Default implementation of a
ByteBufHolder that holds it's data in a ByteBuf . |
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
ByteBufHolder
A packet which is send or receive.
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufHolder
A packet which is send or receive.
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|
ByteBufAllocator
Implementations are responsible to allocate buffers.
|
ByteBufHolder
A packet which is send or receive.
|
Class and Description |
---|
ByteBuf
A random and sequential accessible sequence of zero or more bytes (octets).
|