Modifier and Type | Class and Description |
---|---|
class |
AbstractByteBufAllocator
骨架 ByteBufAllocator 执行延伸。
|
class |
PooledByteBufAllocator |
class |
UnpooledByteBufAllocator
单纯的 ByteBufAllocator 实现不会聚集任何东西。
|
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()
已过时。
|
ByteBufAllocator |
ReadOnlyByteBuf.alloc()
已过时。
|
ByteBufAllocator |
EmptyByteBuf.alloc() |
ByteBufAllocator |
DuplicatedByteBuf.alloc()
已过时。
|
ByteBufAllocator |
CompositeByteBuf.alloc() |
abstract ByteBufAllocator |
ByteBuf.alloc()
返回创建此缓冲区的 ByteBufAllocator 。
|
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc, java.nio.CharBuffer src, java.nio.charset.Charset charset)
编码给定 CharBuffer 使用给定Charset 到一个新ByteBuf 这是通过分配ByteBufAllocator 。
|
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc, java.nio.CharBuffer src, java.nio.charset.Charset charset, int extraCapacity)
编码给定 CharBuffer 使用给定Charset 到一个新ByteBuf 这是通过分配ByteBufAllocator 。
|
static ByteBuf |
ByteBufUtil.readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length)
阅读给定的字节量到一个新 ByteBuf 是从分配ByteBufAllocator 。
|
static ByteBuf |
ByteBufUtil.writeAscii(ByteBufAllocator alloc, java.lang.CharSequence seq)
在 CharSequence 中编码CharSequence并将其写入85671801367801分配的alloc 。
|
static ByteBuf |
ByteBufUtil.writeUtf8(ByteBufAllocator alloc, java.lang.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, java.lang.Iterable<ByteBuf> buffers) |
EmptyByteBuf(ByteBufAllocator alloc) |
UnpooledDirectByteBuf(ByteBufAllocator alloc, java.nio.ByteBuffer initialBuffer, int maxCapacity)
通过包装指定的初始缓冲区来创建一个新的直接缓冲区。
|
UnpooledDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
创建一个新的直接缓冲区。
|
UnpooledHeapByteBuf(ByteBufAllocator alloc, byte[] initialArray, int maxCapacity)
用现有的字节数组创建一个新的堆缓冲区。
|
UnpooledHeapByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
用新分配的字节数组创建一个新的堆缓冲区。
|
UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, java.nio.ByteBuffer initialBuffer, int maxCapacity)
通过包装指定的初始缓冲区来创建一个新的直接缓冲区。
|
UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
创建一个新的直接缓冲区。
|
Modifier and Type | Class and Description |
---|---|
class |
PreferHeapByteBufAllocator
包裹另一个 ByteBufAllocator ,并且在明确要求直接缓冲区时除外使用heapbuffers。
|
Modifier and Type | Field and Description |
---|---|
static ChannelOption<ByteBufAllocator> |
ChannelOption.ALLOCATOR |
Modifier and Type | Method and Description |
---|---|
ByteBufAllocator |
ChannelHandlerContext.alloc()
返回分配的 ByteBufAllocator 这将被用于分配ByteBuf 秒。
|
ByteBufAllocator |
Channel.alloc()
返回分配的 ByteBufAllocator 这将被用于分配ByteBuf 秒。
|
ByteBufAllocator |
AbstractChannel.alloc() |
ByteBufAllocator |
DefaultChannelConfig.getAllocator() |
ByteBufAllocator |
ChannelConfig.getAllocator()
返回 ByteBufAllocator ,用于通道分配缓冲区。
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
RecvByteBufAllocator.Handle.allocate(ByteBufAllocator alloc)
已过时。
创建一个新的接收缓冲区,其容量可能足够大,可以读取所有入站数据,并且足够小,不会浪费其空间。
|
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)
计算
current + next 的结果。
|
protected ByteBuf |
AbstractCoalescingBufferQueue.composeFirst(ByteBufAllocator allocator, ByteBuf first)
|
protected ByteBuf |
AbstractCoalescingBufferQueue.composeIntoComposite(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
将 cumulation 和next 成一个新的CompositeByteBuf 。
|
protected ByteBuf |
AbstractCoalescingBufferQueue.copyAndCompose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
|
ByteBuf |
AbstractCoalescingBufferQueue.remove(ByteBufAllocator alloc, int bytes, ChannelPromise aggregatePromise)
用指定的字节数从队列中移除 ByteBuf 。
|
ChannelConfig |
DefaultChannelConfig.setAllocator(ByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setAllocator(ByteBufAllocator allocator)
设置用于通道分配缓冲区的 ByteBufAllocator 。
|
Constructor and Description |
---|
PreferHeapByteBufAllocator(ByteBufAllocator allocator) |
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) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) |
OioSocketChannelConfig |
DefaultOioSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
OioServerSocketChannelConfig |
DefaultOioServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
UdtServerChannelConfig |
UdtServerChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
UdtChannelConfig |
UdtChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
UdtServerChannelConfig |
DefaultUdtServerChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
UdtChannelConfig |
DefaultUdtChannelConfig.setAllocator(ByteBufAllocator allocator)
已过时。
|
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)
返回下一个可用的HttpChunk。
|
Modifier and Type | Method and Description |
---|---|
WebSocketFrame |
WebSocketChunkedInput.readChunk(ByteBufAllocator allocator)
从流中获取分块的数据。
|
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.newMessage(Http2Stream stream, Http2Headers headers, boolean validateHttpHeaders, ByteBufAllocator alloc)
根据当前连接参数创建一个新的 FullHttpMessage
|
static FullHttpRequest |
HttpConversionUtil.toFullHttpRequest(int streamId, Http2Headers http2Headers, ByteBufAllocator alloc, boolean validateHttpHeaders)
创建一个新的对象来包含请求数据
|
static FullHttpResponse |
HttpConversionUtil.toFullHttpResponse(int streamId, Http2Headers http2Headers, ByteBufAllocator alloc, boolean validateHttpHeaders)
创建一个新的对象来包含响应数据
|
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 javax.net.ssl.SSLEngine |
SslContext.newEngine(ByteBufAllocator alloc)
创建一个新的
SSLEngine 。
|
javax.net.ssl.SSLEngine |
ReferenceCountedOpenSslContext.newEngine(ByteBufAllocator alloc)
用当前配置返回一个新的服务器端
SSLEngine 。
|
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)
使用咨询对等信息创建新的
SSLEngine 。
|
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)
创建一个新的 SslHandler 。
|
protected SslHandler |
SslContext.newHandler(ByteBufAllocator alloc, boolean startTls)
创建一个新的SslHandler。
|
protected SslHandler |
ReferenceCountedOpenSslContext.newHandler(ByteBufAllocator alloc, boolean startTls) |
protected SslHandler |
DelegatingSslContext.newHandler(ByteBufAllocator alloc, boolean startTls) |
SslHandler |
SslContext.newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort)
用咨询对等信息创建一个新的 SslHandler 。
|
protected SslHandler |
SslContext.newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean startTls)
创建一个新的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) |
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–2018 The Netty Project. All rights reserved.