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.kqueue |
BSD specific transport.
|
io.netty.channel.rxtx |
A serial and parallel port communication transport based on RXTX.
|
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.udt |
UDT Transport.
|
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.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.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
io.netty.handler.codec.spdy |
Encoder, decoder, session handler and their related message types for the SPDY protocol.
|
io.netty.handler.ssl | |
io.netty.handler.stream |
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError . |
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 |
---|---|
static ByteBufAllocator |
ByteBufAllocator.DEFAULT |
Modifier and Type | Method and Description |
---|---|
ByteBufAllocator |
UnpooledUnsafeDirectByteBuf.alloc() |
ByteBufAllocator |
UnpooledHeapByteBuf.alloc() |
ByteBufAllocator |
UnpooledDirectByteBuf.alloc() |
ByteBufAllocator |
SwappedByteBuf.alloc()
Deprecated.
|
ByteBufAllocator |
ReadOnlyByteBuf.alloc()
Deprecated.
|
ByteBufAllocator |
EmptyByteBuf.alloc() |
ByteBufAllocator |
DuplicatedByteBuf.alloc()
Deprecated.
|
ByteBufAllocator |
CompositeByteBuf.alloc() |
abstract ByteBufAllocator |
ByteBuf.alloc()
Returns the
ByteBufAllocator which created this buffer. |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
CharBuffer src,
Charset charset)
Encode the given
CharBuffer using the given Charset into a new ByteBuf which
is allocated via the ByteBufAllocator . |
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
CharBuffer src,
Charset charset,
int extraCapacity)
Encode the given
CharBuffer using the given Charset into a new ByteBuf which
is allocated via the ByteBufAllocator . |
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,
CharSequence seq)
|
static ByteBuf |
ByteBufUtil.writeUtf8(ByteBufAllocator alloc,
CharSequence seq)
|
Constructor and Description |
---|
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
ByteBuf... buffers) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
Iterable<ByteBuf> buffers) |
EmptyByteBuf(ByteBufAllocator alloc) |
UnpooledDirectByteBuf(ByteBufAllocator alloc,
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,
int initialCapacity,
int maxCapacity)
Creates a new heap buffer with a newly allocated byte array.
|
UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc,
ByteBuffer initialBuffer,
int maxCapacity)
Creates a new direct buffer by wrapping the specified initial buffer.
|
UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity)
Creates a new direct buffer.
|
Modifier and Type | Field and Description |
---|---|
static ChannelOption<ByteBufAllocator> |
ChannelOption.ALLOCATOR |
Modifier and Type | Method and Description |
---|---|
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 |
AbstractChannel.alloc() |
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)
Deprecated.
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 |
RecvByteBufAllocator.DelegatingHandle.allocate(ByteBufAllocator alloc) |
ByteBuf |
DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle.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 |
---|---|
EpollSocketChannelConfig |
EpollSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollServerSocketChannelConfig |
EpollServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollServerChannelConfig |
EpollServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollDomainSocketChannelConfig |
EpollDomainSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollDatagramChannelConfig |
EpollDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollChannelConfig |
EpollChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
KQueueSocketChannelConfig |
KQueueSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueServerSocketChannelConfig |
KQueueServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueServerChannelConfig |
KQueueServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueDomainSocketChannelConfig |
KQueueDomainSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueDatagramChannelConfig |
KQueueDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueChannelConfig |
KQueueChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
RxtxChannelConfig |
RxtxChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
SctpServerChannelConfig |
SctpServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
SctpChannelConfig |
SctpChannelConfig.setAllocator(ByteBufAllocator allocator) |
SctpServerChannelConfig |
DefaultSctpServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
SctpChannelConfig |
DefaultSctpChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
SocketChannelConfig |
SocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
DatagramChannelConfig |
DefaultDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
DatagramChannelConfig |
DatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
OioSocketChannelConfig |
OioSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
OioServerSocketChannelConfig |
OioServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
OioSocketChannelConfig |
DefaultOioSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
OioServerSocketChannelConfig |
DefaultOioServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
UdtServerChannelConfig |
UdtServerChannelConfig.setAllocator(ByteBufAllocator allocator)
Deprecated.
|
UdtChannelConfig |
UdtChannelConfig.setAllocator(ByteBufAllocator allocator)
Deprecated.
|
UdtServerChannelConfig |
DefaultUdtServerChannelConfig.setAllocator(ByteBufAllocator allocator)
Deprecated.
|
UdtChannelConfig |
DefaultUdtChannelConfig.setAllocator(ByteBufAllocator allocator)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ByteBufAllocator |
SocketWritableByteChannel.alloc() |
Modifier and Type | Method and Description |
---|---|
DomainSocketChannelConfig |
DomainSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
ByteToMessageDecoder.Cumulator.cumulate(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf in)
|
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 |
---|---|
HttpContent |
HttpChunkedInput.readChunk(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
HttpContent |
HttpPostRequestEncoder.readChunk(ByteBufAllocator allocator)
Returns the next available HttpChunk.
|
Modifier and Type | Method and Description |
---|---|
WebSocketFrame |
WebSocketChunkedInput.readChunk(ByteBufAllocator allocator)
Fetches a chunked data from the stream.
|
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.newMessage(Http2Stream stream,
Http2Headers headers,
boolean validateHttpHeaders,
ByteBufAllocator alloc)
Create a new
FullHttpMessage based upon the current connection parameters |
static FullHttpRequest |
HttpConversionUtil.toFullHttpRequest(int streamId,
Http2Headers http2Headers,
ByteBufAllocator alloc,
boolean validateHttpHeaders)
Create a new object to contain the request data
|
static FullHttpResponse |
HttpConversionUtil.toHttpResponse(int streamId,
Http2Headers http2Headers,
ByteBufAllocator alloc,
boolean validateHttpHeaders)
Create a new object to contain the response data
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
SpdyHeaderBlockRawEncoder.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) |
Modifier and Type | Method and Description |
---|---|
abstract SSLEngine |
SslContext.newEngine(ByteBufAllocator alloc)
Creates a new
SSLEngine . |
SSLEngine |
ReferenceCountedOpenSslContext.newEngine(ByteBufAllocator alloc)
Returns a new server-side
SSLEngine with the current configuration. |
SSLEngine |
JdkSslContext.newEngine(ByteBufAllocator alloc) |
SSLEngine |
DelegatingSslContext.newEngine(ByteBufAllocator alloc) |
abstract SSLEngine |
SslContext.newEngine(ByteBufAllocator alloc,
String peerHost,
int peerPort)
Creates a new
SSLEngine using advisory peer information. |
SSLEngine |
ReferenceCountedOpenSslContext.newEngine(ByteBufAllocator alloc,
String peerHost,
int peerPort) |
SSLEngine |
JdkSslContext.newEngine(ByteBufAllocator alloc,
String peerHost,
int peerPort) |
SSLEngine |
DelegatingSslContext.newEngine(ByteBufAllocator alloc,
String peerHost,
int peerPort) |
SslHandler |
SslContext.newHandler(ByteBufAllocator alloc)
Creates a new
SslHandler . |
SslHandler |
SslContext.newHandler(ByteBufAllocator alloc,
String peerHost,
int peerPort)
Creates a new
SslHandler with advisory peer information. |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
ChunkedStream.readChunk(ByteBufAllocator allocator) |
ByteBuf |
ChunkedNioStream.readChunk(ByteBufAllocator allocator) |
ByteBuf |
ChunkedNioFile.readChunk(ByteBufAllocator allocator) |
B |
ChunkedInput.readChunk(ByteBufAllocator allocator)
Fetches a chunked data from the stream.
|
ByteBuf |
ChunkedFile.readChunk(ByteBufAllocator allocator) |
Copyright © 2008–2017 The Netty Project. All rights reserved.