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.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.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.spdy |
Encoder, decoder, session handler and their related message types for the SPDY protocol.
|
io.netty.handler.ssl |
SSL ·
TLS implementation based on
SSLEngine |
Modifier and Type | Class and Description |
---|---|
class |
AbstractByteBufAllocator
Skeletal
ByteBufAllocator implementation to extend. |
class |
PooledByteBufAllocator |
class |
UnpooledByteBufAllocator
Simplistic
ByteBufAllocator implementation that does not pool anything. |
Modifier and Type | Field and Description |
---|---|
private ByteBufAllocator |
UnpooledUnsafeDirectByteBuf.alloc |
private ByteBufAllocator |
EmptyByteBuf.alloc |
private ByteBufAllocator |
CompositeByteBuf.alloc |
private ByteBufAllocator |
UnpooledDirectByteBuf.alloc |
private ByteBufAllocator |
UnpooledHeapByteBuf.alloc |
private static ByteBufAllocator |
Unpooled.ALLOC |
private ByteBufAllocator |
ReadOnlyByteBufferBuf.allocator |
private ByteBufAllocator |
FixedCompositeByteBuf.allocator |
static ByteBufAllocator |
ByteBufAllocator.DEFAULT |
(package private) static ByteBufAllocator |
ByteBufUtil.DEFAULT_ALLOCATOR |
Modifier and Type | Method and Description |
---|---|
ByteBufAllocator |
UnpooledUnsafeDirectByteBuf.alloc() |
ByteBufAllocator |
EmptyByteBuf.alloc() |
ByteBufAllocator |
CompositeByteBuf.alloc() |
ByteBufAllocator |
ReadOnlyByteBuf.alloc()
Deprecated.
|
ByteBufAllocator |
WrappedCompositeByteBuf.alloc() |
ByteBufAllocator |
ReadOnlyByteBufferBuf.alloc() |
ByteBufAllocator |
SlicedByteBuf.alloc()
Deprecated.
|
ByteBufAllocator |
PooledByteBuf.alloc() |
ByteBufAllocator |
UnpooledDirectByteBuf.alloc() |
ByteBufAllocator |
FixedCompositeByteBuf.alloc() |
abstract ByteBufAllocator |
ByteBuf.alloc()
Returns the
ByteBufAllocator which created this buffer. |
ByteBufAllocator |
WrappedByteBuf.alloc() |
ByteBufAllocator |
DuplicatedByteBuf.alloc()
Deprecated.
|
ByteBufAllocator |
UnpooledHeapByteBuf.alloc() |
ByteBufAllocator |
SwappedByteBuf.alloc() |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
java.nio.CharBuffer src,
java.nio.charset.Charset charset)
Encode the given
CharBuffer using the given Charset into a new ByteBuf which
is allocated via the ByteBufAllocator . |
(package private) static ByteBuf |
ByteBufUtil.encodeString0(ByteBufAllocator alloc,
boolean enforceHeap,
java.nio.CharBuffer src,
java.nio.charset.Charset charset) |
(package private) static UnpooledUnsafeDirectByteBuf |
UnsafeByteBufUtil.newUnsafeDirectByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity) |
static ByteBuf |
ByteBufUtil.readBytes(ByteBufAllocator alloc,
ByteBuf buffer,
int length)
Read the given amount of bytes into a new
ByteBuf that is allocated from the ByteBufAllocator . |
static ByteBuf |
ByteBufUtil.writeAscii(ByteBufAllocator alloc,
java.lang.CharSequence seq)
|
static ByteBuf |
ByteBufUtil.writeUtf8(ByteBufAllocator alloc,
java.lang.CharSequence seq)
|
Constructor and Description |
---|
CompositeByteBuf(ByteBufAllocator alloc) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
ByteBuf... buffers) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
ByteBuf[] buffers,
int offset,
int len) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
java.lang.Iterable<ByteBuf> buffers) |
EmptyByteBuf(ByteBufAllocator alloc) |
EmptyByteBuf(ByteBufAllocator alloc,
java.nio.ByteOrder order) |
FixedCompositeByteBuf(ByteBufAllocator allocator,
ByteBuf... buffers) |
ReadOnlyByteBufferBuf(ByteBufAllocator allocator,
java.nio.ByteBuffer buffer) |
ReadOnlyUnsafeDirectByteBuf(ByteBufAllocator allocator,
java.nio.ByteBuffer buffer) |
UnpooledDirectByteBuf(ByteBufAllocator alloc,
java.nio.ByteBuffer initialBuffer,
int maxCapacity)
Creates a new direct buffer by wrapping the specified initial buffer.
|
UnpooledDirectByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity)
Creates a new direct buffer.
|
UnpooledHeapByteBuf(ByteBufAllocator alloc,
byte[] initialArray,
int maxCapacity)
Creates a new heap buffer with an existing byte array.
|
UnpooledHeapByteBuf(ByteBufAllocator alloc,
byte[] initialArray,
int readerIndex,
int writerIndex,
int maxCapacity) |
UnpooledHeapByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity)
Creates a new heap buffer with a newly allocated byte array.
|
UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc,
java.nio.ByteBuffer initialBuffer,
int maxCapacity)
Creates a new direct buffer by wrapping the specified initial buffer.
|
UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc,
java.nio.ByteBuffer initialBuffer,
int maxCapacity,
boolean doFree) |
UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity)
Creates a new direct buffer.
|
UnpooledUnsafeHeapByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity)
Creates a new heap buffer with a newly allocated byte array.
|
UnpooledUnsafeNoCleanerDirectByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity) |
WrappedUnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc,
long memoryAddress,
int size,
boolean doFree) |
Modifier and Type | Field and Description |
---|---|
private ByteBufAllocator |
DefaultChannelConfig.allocator |
Modifier and Type | Field and Description |
---|---|
static ChannelOption<ByteBufAllocator> |
ChannelOption.ALLOCATOR |
Modifier and Type | Method and Description |
---|---|
ByteBufAllocator |
AbstractChannelHandlerContext.alloc() |
ByteBufAllocator |
AbstractChannel.alloc() |
ByteBufAllocator |
CombinedChannelDuplexHandler.DelegatingChannelHandlerContext.alloc() |
ByteBufAllocator |
ChannelHandlerContext.alloc()
Return the assigned
ByteBufAllocator which will be used to allocate ByteBuf s. |
ByteBufAllocator |
Channel.alloc()
Return the assigned
ByteBufAllocator which will be used to allocate ByteBuf s. |
ByteBufAllocator |
DefaultChannelConfig.getAllocator() |
ByteBufAllocator |
ChannelConfig.getAllocator()
Returns
ByteBufAllocator which is used for the channel
to allocate buffers. |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
RecvByteBufAllocator.Handle.allocate(ByteBufAllocator alloc)
Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small
enough not to waste its space.
|
ByteBuf |
AdaptiveRecvByteBufAllocator.HandleImpl.allocate(ByteBufAllocator alloc) |
ByteBuf |
FixedRecvByteBufAllocator.HandleImpl.allocate(ByteBufAllocator alloc) |
ChannelConfig |
DefaultChannelConfig.setAllocator(ByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setAllocator(ByteBufAllocator allocator)
Set the
ByteBufAllocator which is used for the channel
to allocate buffers. |
Modifier and Type | Method and Description |
---|---|
private static ByteBuf |
AbstractEpollChannel.newDirectBuffer0(java.lang.Object holder,
ByteBuf buf,
ByteBufAllocator alloc,
int capacity) |
EpollChannelConfig |
EpollChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollDomainSocketChannelConfig |
EpollDomainSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollServerChannelConfig |
EpollServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollSocketChannelConfig |
EpollSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollServerSocketChannelConfig |
EpollServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollDatagramChannelConfig |
EpollDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
SctpServerChannelConfig |
SctpServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
SctpChannelConfig |
DefaultSctpChannelConfig.setAllocator(ByteBufAllocator allocator) |
SctpChannelConfig |
SctpChannelConfig.setAllocator(ByteBufAllocator allocator) |
SctpServerChannelConfig |
DefaultSctpServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
DatagramChannelConfig |
DefaultDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
SocketChannelConfig |
SocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
DatagramChannelConfig |
DatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
OioServerSocketChannelConfig |
DefaultOioServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
OioSocketChannelConfig |
DefaultOioSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
OioServerSocketChannelConfig |
OioServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
OioSocketChannelConfig |
OioSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
DomainSocketChannelConfig |
DomainSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
ByteBufAllocator |
ReplayingDecoderByteBuf.alloc() |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
ByteToMessageDecoder.Cumulator.cumulate(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf in)
|
(package private) static ByteBuf |
ByteToMessageDecoder.expandCumulation(ByteBufAllocator alloc,
ByteBuf cumulation,
int readable) |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len,
Base64Dialect dialect,
ByteBufAllocator allocator) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines,
Base64Dialect dialect,
ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
SpdyHeaderBlockRawDecoder.decode(ByteBufAllocator alloc,
ByteBuf headerBlock,
SpdyHeadersFrame frame) |
(package private) void |
SpdyHeaderBlockZlibDecoder.decode(ByteBufAllocator alloc,
ByteBuf headerBlock,
SpdyHeadersFrame frame) |
(package private) abstract void |
SpdyHeaderBlockDecoder.decode(ByteBufAllocator alloc,
ByteBuf headerBlock,
SpdyHeadersFrame frame)
Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.
|
private int |
SpdyHeaderBlockZlibDecoder.decompress(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
private ByteBuf |
SpdyHeaderBlockJZlibEncoder.encode(ByteBufAllocator alloc) |
private ByteBuf |
SpdyHeaderBlockZlibEncoder.encode(ByteBufAllocator alloc,
int len) |
ByteBuf |
SpdyHeaderBlockRawEncoder.encode(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
ByteBuf |
SpdyHeaderBlockJZlibEncoder.encode(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
ByteBuf |
SpdyHeaderBlockZlibEncoder.encode(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
(package private) abstract ByteBuf |
SpdyHeaderBlockEncoder.encode(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
ByteBuf |
SpdyFrameEncoder.encodeDataFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf data) |
ByteBuf |
SpdyFrameEncoder.encodeGoAwayFrame(ByteBufAllocator allocator,
int lastGoodStreamId,
int statusCode) |
ByteBuf |
SpdyFrameEncoder.encodeHeadersFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodePingFrame(ByteBufAllocator allocator,
int id) |
ByteBuf |
SpdyFrameEncoder.encodeRstStreamFrame(ByteBufAllocator allocator,
int streamId,
int statusCode) |
ByteBuf |
SpdyFrameEncoder.encodeSettingsFrame(ByteBufAllocator allocator,
SpdySettingsFrame spdySettingsFrame) |
ByteBuf |
SpdyFrameEncoder.encodeSynReplyFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeSynStreamFrame(ByteBufAllocator allocator,
int streamId,
int associatedToStreamId,
byte priority,
boolean last,
boolean unidirectional,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeWindowUpdateFrame(ByteBufAllocator allocator,
int streamId,
int deltaWindowSize) |
private void |
SpdyHeaderBlockZlibDecoder.ensureBuffer(ByteBufAllocator alloc) |
Modifier and Type | Method and Description |
---|---|
private static ByteBuf |
PemX509Certificate.append(ByteBufAllocator allocator,
boolean useDirect,
PemEncoded encoded,
int count,
ByteBuf pem)
Appends the
PemEncoded value to the ByteBuf (last arg) and returns it. |
private static ByteBuf |
PemX509Certificate.append(ByteBufAllocator allocator,
boolean useDirect,
java.security.cert.X509Certificate cert,
int count,
ByteBuf pem)
Appends the
X509Certificate value to the ByteBuf (last arg) and returns it. |
private static ByteBuf |
PemX509Certificate.newBuffer(ByteBufAllocator allocator,
boolean useDirect,
int initialCapacity) |
javax.net.ssl.SSLEngine |
DelegatingSslContext.newEngine(ByteBufAllocator alloc) |
javax.net.ssl.SSLEngine |
JdkSslContext.newEngine(ByteBufAllocator alloc) |
abstract javax.net.ssl.SSLEngine |
SslContext.newEngine(ByteBufAllocator alloc)
Creates a new
SSLEngine . |
javax.net.ssl.SSLEngine |
DelegatingSslContext.newEngine(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort) |
javax.net.ssl.SSLEngine |
JdkSslContext.newEngine(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort) |
abstract javax.net.ssl.SSLEngine |
SslContext.newEngine(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort)
Creates a new
SSLEngine using advisory peer information. |
SslHandler |
SslContext.newHandler(ByteBufAllocator alloc)
Creates a new
SslHandler . |
SslHandler |
SslContext.newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort)
Creates a new
SslHandler with advisory peer information. |
(package private) static ByteBuf |
SslUtils.toBase64(ByteBufAllocator allocator,
ByteBuf src)
Same as
Base64.encode(ByteBuf, boolean) but allows the use of a custom ByteBufAllocator . |
(package private) static PemEncoded |
PemPrivateKey.toPEM(ByteBufAllocator allocator,
boolean useDirect,
java.security.PrivateKey key)
Creates a
PemEncoded value from the PrivateKey . |
(package private) static PemEncoded |
PemX509Certificate.toPEM(ByteBufAllocator allocator,
boolean useDirect,
java.security.cert.X509Certificate... chain)
Creates a
PemEncoded value from the X509Certificate s. |
private javax.net.ssl.SSLEngineResult |
SslHandler.wrap(ByteBufAllocator alloc,
javax.net.ssl.SSLEngine engine,
ByteBuf in,
ByteBuf out) |