程序包 | 说明 |
---|---|
io.netty.buffer |
Benchmarks for
io.netty.buffer . |
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 |
Benchmarks for
io.netty.handler.codec . |
io.netty.handler.codec.base64 | |
io.netty.handler.codec.http |
Benchmarks for
io.netty.handler.codec.http . |
io.netty.handler.codec.http.multipart |
Benchmarks for
io.netty.handler.codec.http.multipart . |
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
io.netty.handler.codec.http2 |
Benchmarks for
io.netty.handler.codec.http2 . |
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 |
io.netty.handler.stream |
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError . |
io.netty.testsuite.transport |
Common test suite classes.
|
io.netty.testsuite.transport.sctp |
Test suite classes for sctp transport
|
io.netty.testsuite.transport.socket |
Test suite classes for socket
|
限定符和类型 | 类和说明 |
---|---|
class |
AbstractByteBufAllocator
Skeletal
ByteBufAllocator implementation to extend. |
class |
PooledByteBufAllocator |
class |
UnpooledByteBufAllocator
Simplistic
ByteBufAllocator implementation that does not pool anything. |
限定符和类型 | 字段和说明 |
---|---|
static ByteBufAllocator |
ByteBufAllocator.DEFAULT |
限定符和类型 | 方法和说明 |
---|---|
ByteBufAllocator |
UnpooledHeapByteBuf.alloc() |
ByteBufAllocator |
UnpooledDirectByteBuf.alloc() |
ByteBufAllocator |
SwappedByteBuf.alloc()
已过时。
|
ByteBufAllocator |
ReadOnlyByteBuf.alloc()
已过时。
|
ByteBufAllocator |
EmptyByteBuf.alloc() |
ByteBufAllocator |
DuplicatedByteBuf.alloc()
已过时。
|
ByteBufAllocator |
CompositeByteBuf.alloc() |
abstract ByteBufAllocator |
ByteBuf.alloc()
Returns the
ByteBufAllocator which created this buffer. |
限定符和类型 | 方法和说明 |
---|---|
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 . |
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
java.nio.CharBuffer src,
java.nio.charset.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,
java.lang.CharSequence seq)
|
static ByteBuf |
ByteBufUtil.writeUtf8(ByteBufAllocator alloc,
java.lang.CharSequence seq)
|
构造器和说明 |
---|
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
ByteBuf... buffers) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
java.lang.Iterable<ByteBuf> buffers) |
EmptyByteBuf(ByteBufAllocator alloc) |
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,
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,
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.
|
限定符和类型 | 类和说明 |
---|---|
class |
PreferHeapByteBufAllocator
Wraps another
ByteBufAllocator and use heapbuffers everywhere except when a direct buffer is explicit
requested. |
限定符和类型 | 字段和说明 |
---|---|
static ChannelOption<ByteBufAllocator> |
ChannelOption.ALLOCATOR |
限定符和类型 | 方法和说明 |
---|---|
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. |
限定符和类型 | 方法和说明 |
---|---|
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 |
RecvByteBufAllocator.DelegatingHandle.allocate(ByteBufAllocator alloc) |
ByteBuf |
DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle.allocate(ByteBufAllocator alloc) |
protected ByteBuf |
CoalescingBufferQueue.compose(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf next) |
protected abstract ByteBuf |
AbstractCoalescingBufferQueue.compose(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf next)
Calculate the result of
current + next . |
protected ByteBuf |
AbstractCoalescingBufferQueue.composeFirst(ByteBufAllocator allocator,
ByteBuf first)
Calculate the first
ByteBuf which will be used in subsequent calls to
AbstractCoalescingBufferQueue.compose(ByteBufAllocator, ByteBuf, ByteBuf) . |
protected ByteBuf |
AbstractCoalescingBufferQueue.composeIntoComposite(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf next)
|
protected ByteBuf |
AbstractCoalescingBufferQueue.copyAndCompose(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf next)
|
ByteBuf |
AbstractCoalescingBufferQueue.remove(ByteBufAllocator alloc,
int bytes,
ChannelPromise aggregatePromise)
Remove a
ByteBuf from the queue with the specified number of bytes. |
ChannelConfig |
DefaultChannelConfig.setAllocator(ByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setAllocator(ByteBufAllocator allocator)
Set the
ByteBufAllocator which is used for the channel
to allocate buffers. |
构造器和说明 |
---|
PreferHeapByteBufAllocator(ByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
EpollSocketChannelConfig |
EpollSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollServerSocketChannelConfig |
EpollServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollServerChannelConfig |
EpollServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollDomainSocketChannelConfig |
EpollDomainSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollDomainDatagramChannelConfig |
EpollDomainDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollDatagramChannelConfig |
EpollDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
EpollChannelConfig |
EpollChannelConfig.setAllocator(ByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
KQueueSocketChannelConfig |
KQueueSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueServerSocketChannelConfig |
KQueueServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueServerChannelConfig |
KQueueServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueDomainSocketChannelConfig |
KQueueDomainSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueDomainDatagramChannelConfig |
KQueueDomainDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueDatagramChannelConfig |
KQueueDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
KQueueChannelConfig |
KQueueChannelConfig.setAllocator(ByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
RxtxChannelConfig |
RxtxChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
SctpServerChannelConfig |
SctpServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
SctpChannelConfig |
SctpChannelConfig.setAllocator(ByteBufAllocator allocator) |
SctpServerChannelConfig |
DefaultSctpServerChannelConfig.setAllocator(ByteBufAllocator allocator) |
SctpChannelConfig |
DefaultSctpChannelConfig.setAllocator(ByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
SocketChannelConfig |
SocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
DuplexChannelConfig |
DuplexChannelConfig.setAllocator(ByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
DatagramChannelConfig |
DefaultDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
DatagramChannelConfig |
DatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
OioSocketChannelConfig |
OioSocketChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
OioServerSocketChannelConfig |
OioServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
OioDatagramChannelConfig |
OioDatagramChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
OioSocketChannelConfig |
DefaultOioSocketChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
OioServerSocketChannelConfig |
DefaultOioServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
UdtServerChannelConfig |
UdtServerChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
UdtChannelConfig |
UdtChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
UdtServerChannelConfig |
DefaultUdtServerChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
UdtChannelConfig |
DefaultUdtChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
限定符和类型 | 类和说明 |
---|---|
class |
PreferredDirectByteBufAllocator |
限定符和类型 | 方法和说明 |
---|---|
protected abstract ByteBufAllocator |
SocketWritableByteChannel.alloc() |
限定符和类型 | 方法和说明 |
---|---|
DomainSocketChannelConfig |
DomainSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
DomainDatagramChannelConfig |
DomainDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
void |
PreferredDirectByteBufAllocator.updateAllocator(ByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
ByteBuf |
ByteToMessageDecoder.Cumulator.cumulate(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf in)
|
限定符和类型 | 方法和说明 |
---|---|
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) |
限定符和类型 | 方法和说明 |
---|---|
HttpContent |
HttpChunkedInput.readChunk(ByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
HttpContent |
HttpPostRequestEncoder.readChunk(ByteBufAllocator allocator)
Returns the next available HttpChunk.
|
限定符和类型 | 方法和说明 |
---|---|
WebSocketFrame |
WebSocketChunkedInput.readChunk(ByteBufAllocator allocator)
Fetches a chunked data from the stream.
|
限定符和类型 | 方法和说明 |
---|---|
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.newMessage(Http2Stream stream,
Http2Headers headers,
boolean validateHttpHeaders,
ByteBufAllocator alloc)
Create a new
FullHttpMessage based upon the current connection parameters |
Http2DataFrame |
Http2DataChunkedInput.readChunk(ByteBufAllocator allocator) |
static FullHttpRequest |
HttpConversionUtil.toFullHttpRequest(int streamId,
Http2Headers http2Headers,
ByteBufAllocator alloc,
boolean validateHttpHeaders)
Create a new object to contain the request data
|
static FullHttpResponse |
HttpConversionUtil.toFullHttpResponse(int streamId,
Http2Headers http2Headers,
ByteBufAllocator alloc,
boolean validateHttpHeaders)
Create a new object to contain the response data
|
限定符和类型 | 方法和说明 |
---|---|
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) |
限定符和类型 | 方法和说明 |
---|---|
abstract javax.net.ssl.SSLEngine |
SslContext.newEngine(ByteBufAllocator alloc)
Creates a new
SSLEngine . |
javax.net.ssl.SSLEngine |
ReferenceCountedOpenSslContext.newEngine(ByteBufAllocator alloc)
Returns a new server-side
SSLEngine with the current configuration. |
javax.net.ssl.SSLEngine |
JdkSslContext.newEngine(ByteBufAllocator alloc) |
javax.net.ssl.SSLEngine |
DelegatingSslContext.newEngine(ByteBufAllocator alloc) |
abstract javax.net.ssl.SSLEngine |
SslContext.newEngine(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort)
Creates a new
SSLEngine using advisory peer information. |
javax.net.ssl.SSLEngine |
ReferenceCountedOpenSslContext.newEngine(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort) |
javax.net.ssl.SSLEngine |
JdkSslContext.newEngine(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort) |
javax.net.ssl.SSLEngine |
DelegatingSslContext.newEngine(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort) |
SslHandler |
SslContext.newHandler(ByteBufAllocator alloc)
Create a new SslHandler.
|
protected SslHandler |
SslContext.newHandler(ByteBufAllocator alloc,
boolean startTls)
Create a new SslHandler.
|
protected SslHandler |
ReferenceCountedOpenSslContext.newHandler(ByteBufAllocator alloc,
boolean startTls) |
protected SslHandler |
DelegatingSslContext.newHandler(ByteBufAllocator alloc,
boolean startTls) |
protected SslHandler |
SslContext.newHandler(ByteBufAllocator alloc,
boolean startTls,
java.util.concurrent.Executor executor)
Create a new SslHandler.
|
protected SslHandler |
ReferenceCountedOpenSslContext.newHandler(ByteBufAllocator alloc,
boolean startTls,
java.util.concurrent.Executor executor) |
protected SslHandler |
DelegatingSslContext.newHandler(ByteBufAllocator alloc,
boolean startTls,
java.util.concurrent.Executor executor) |
SslHandler |
SslContext.newHandler(ByteBufAllocator alloc,
java.util.concurrent.Executor delegatedTaskExecutor)
Creates a new
SslHandler . |
SslHandler |
SslContext.newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort)
Creates a new
SslHandler |
protected SslHandler |
SslContext.newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort,
boolean startTls)
Create a new SslHandler.
|
protected SslHandler |
ReferenceCountedOpenSslContext.newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort,
boolean startTls) |
protected SslHandler |
DelegatingSslContext.newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort,
boolean startTls) |
protected SslHandler |
SslContext.newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort,
boolean startTls,
java.util.concurrent.Executor delegatedTaskExecutor) |
protected SslHandler |
ReferenceCountedOpenSslContext.newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort,
boolean startTls,
java.util.concurrent.Executor executor) |
protected SslHandler |
DelegatingSslContext.newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort,
boolean startTls,
java.util.concurrent.Executor executor) |
SslHandler |
SslContext.newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort,
java.util.concurrent.Executor delegatedTaskExecutor)
Creates a new
SslHandler with advisory peer information. |
protected SslHandler |
SniHandler.newSslHandler(SslContext context,
ByteBufAllocator allocator)
|
限定符和类型 | 方法和说明 |
---|---|
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) |
限定符和类型 | 方法和说明 |
---|---|
static java.util.List<ByteBufAllocator> |
TestsuitePermutation.allocator() |
protected java.util.List<ByteBufAllocator> |
AbstractTestsuiteTest.newAllocators() |
protected java.util.List<ByteBufAllocator> |
AbstractComboTestsuiteTest.newAllocators() |
限定符和类型 | 方法和说明 |
---|---|
protected abstract void |
AbstractComboTestsuiteTest.configure(SB sb,
CB cb,
ByteBufAllocator allocator) |
protected abstract void |
AbstractTestsuiteTest.configure(T bootstrap,
ByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
AbstractSctpTest.configure(ServerBootstrap serverBootstrap,
Bootstrap bootstrap,
ByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
AbstractDatagramTest.configure(Bootstrap bootstrap,
Bootstrap bootstrap2,
ByteBufAllocator allocator) |
protected void |
AbstractClientSocketTest.configure(Bootstrap bootstrap,
ByteBufAllocator allocator) |
protected void |
AbstractSocketTest.configure(ServerBootstrap sb,
Bootstrap cb,
ByteBufAllocator allocator) |
protected void |
AbstractServerSocketTest.configure(ServerBootstrap bootstrap,
ByteBufAllocator allocator) |