Uses of Interface
io.netty.buffer.ByteBufAllocator
-
Packages that use ByteBufAllocator 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.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.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.mqtt Encoder, decoder and different Message Types for MQTT.io.netty.handler.codec.redis Encoder, decoder for Redis.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 onSSLEngine
io.netty.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError
. -
-
Uses of ByteBufAllocator in io.netty.buffer
Classes in io.netty.buffer that implement ByteBufAllocator Modifier and Type Class Description class
AbstractByteBufAllocator
SkeletalByteBufAllocator
implementation to extend.class
PooledByteBufAllocator
class
UnpooledByteBufAllocator
SimplisticByteBufAllocator
implementation that does not pool anything.Fields in io.netty.buffer declared as ByteBufAllocator Modifier and Type Field Description private ByteBufAllocator
CompositeByteBuf. alloc
private ByteBufAllocator
EmptyByteBuf. alloc
private ByteBufAllocator
UnpooledDirectByteBuf. alloc
private ByteBufAllocator
UnpooledHeapByteBuf. alloc
private static ByteBufAllocator
Unpooled. ALLOC
private ByteBufAllocator
FixedCompositeByteBuf. allocator
private ByteBufAllocator
PooledByteBuf. allocator
private ByteBufAllocator
ReadOnlyByteBufferBuf. allocator
static ByteBufAllocator
ByteBufAllocator. DEFAULT
(package private) static ByteBufAllocator
ByteBufUtil. DEFAULT_ALLOCATOR
Methods in io.netty.buffer that return ByteBufAllocator Modifier and Type Method Description ByteBufAllocator
AbstractPooledDerivedByteBuf. alloc()
ByteBufAllocator
AbstractUnpooledSlicedByteBuf. alloc()
abstract ByteBufAllocator
ByteBuf. alloc()
Returns theByteBufAllocator
which created this buffer.ByteBufAllocator
CompositeByteBuf. alloc()
ByteBufAllocator
DuplicatedByteBuf. alloc()
Deprecated.ByteBufAllocator
EmptyByteBuf. alloc()
ByteBufAllocator
FixedCompositeByteBuf. alloc()
ByteBufAllocator
PooledByteBuf. alloc()
ByteBufAllocator
ReadOnlyByteBuf. alloc()
Deprecated.ByteBufAllocator
ReadOnlyByteBufferBuf. alloc()
ByteBufAllocator
SwappedByteBuf. alloc()
Deprecated.ByteBufAllocator
UnpooledDirectByteBuf. alloc()
ByteBufAllocator
UnpooledHeapByteBuf. alloc()
ByteBufAllocator
WrappedByteBuf. alloc()
ByteBufAllocator
WrappedCompositeByteBuf. alloc()
Methods in io.netty.buffer with parameters of type ByteBufAllocator Modifier and Type Method Description static ByteBuf
ByteBufUtil. encodeString(ByteBufAllocator alloc, java.nio.CharBuffer src, java.nio.charset.Charset charset)
Encode the givenCharBuffer
using the givenCharset
into a newByteBuf
which is allocated via theByteBufAllocator
.static ByteBuf
ByteBufUtil. encodeString(ByteBufAllocator alloc, java.nio.CharBuffer src, java.nio.charset.Charset charset, int extraCapacity)
Encode the givenCharBuffer
using the givenCharset
into a newByteBuf
which is allocated via theByteBufAllocator
.(package private) static ByteBuf
ByteBufUtil. encodeString0(ByteBufAllocator alloc, boolean enforceHeap, java.nio.CharBuffer src, java.nio.charset.Charset charset, int extraCapacity)
(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 newByteBuf
that is allocated from theByteBufAllocator
.(package private) static void
ByteBufUtil. readBytes(ByteBufAllocator allocator, java.nio.ByteBuffer buffer, int position, int length, java.io.OutputStream out)
Read bytes from the givenByteBuffer
into the givenOutputStream
using theposition
andlength
.static ByteBuf
ByteBufUtil. writeAscii(ByteBufAllocator alloc, java.lang.CharSequence seq)
static ByteBuf
ByteBufUtil. writeUtf8(ByteBufAllocator alloc, java.lang.CharSequence seq)
Constructors in io.netty.buffer with parameters of type ByteBufAllocator Constructor Description CompositeByteBuf(ByteBufAllocator alloc)
CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents)
CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents, int initSize)
CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents, ByteBuf... buffers)
CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents, ByteBuf[] buffers, int offset)
CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents, CompositeByteBuf.ByteWrapper<T> wrapper, T[] buffers, int offset)
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 byteBuffer)
UnpooledDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
Creates a new direct buffer.UnpooledDirectByteBuf(ByteBufAllocator alloc, java.nio.ByteBuffer initialBuffer, int maxCapacity)
Creates a new direct buffer by wrapping the specified initial buffer.UnpooledDirectByteBuf(ByteBufAllocator alloc, java.nio.ByteBuffer initialBuffer, int maxCapacity, boolean doFree, boolean slice)
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, int initialCapacity, int maxCapacity)
Creates a new direct buffer.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)
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)
-
Uses of ByteBufAllocator in io.netty.channel
Classes in io.netty.channel that implement ByteBufAllocator Modifier and Type Class Description class
PreferHeapByteBufAllocator
Wraps anotherByteBufAllocator
and use heapbuffers everywhere except when a direct buffer is explicit requested.Fields in io.netty.channel declared as ByteBufAllocator Modifier and Type Field Description private ByteBufAllocator
DefaultChannelConfig. allocator
private ByteBufAllocator
PreferHeapByteBufAllocator. allocator
Fields in io.netty.channel with type parameters of type ByteBufAllocator Modifier and Type Field Description static ChannelOption<ByteBufAllocator>
ChannelOption. ALLOCATOR
Methods in io.netty.channel that return ByteBufAllocator Modifier and Type Method Description ByteBufAllocator
AbstractChannel. alloc()
ByteBufAllocator
AbstractChannelHandlerContext. alloc()
ByteBufAllocator
Channel. alloc()
Return the assignedByteBufAllocator
which will be used to allocateByteBuf
s.ByteBufAllocator
ChannelHandlerContext. alloc()
Return the assignedByteBufAllocator
which will be used to allocateByteBuf
s.ByteBufAllocator
CombinedChannelDuplexHandler.DelegatingChannelHandlerContext. alloc()
ByteBufAllocator
ChannelConfig. getAllocator()
ReturnsByteBufAllocator
which is used for the channel to allocate buffers.ByteBufAllocator
DefaultChannelConfig. getAllocator()
Methods in io.netty.channel with parameters of type ByteBufAllocator Modifier and Type Method Description ByteBuf
DefaultMaxBytesRecvByteBufAllocator.HandleImpl. allocate(ByteBufAllocator alloc)
ByteBuf
DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle. allocate(ByteBufAllocator alloc)
ByteBuf
RecvByteBufAllocator.DelegatingHandle. allocate(ByteBufAllocator alloc)
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.protected abstract ByteBuf
AbstractCoalescingBufferQueue. compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
Calculate the result ofcurrent + next
.protected ByteBuf
CoalescingBufferQueue. compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
protected ByteBuf
AbstractCoalescingBufferQueue. composeFirst(ByteBufAllocator allocator, ByteBuf first)
Calculate the firstByteBuf
which will be used in subsequent calls toAbstractCoalescingBufferQueue.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 aByteBuf
from the queue with the specified number of bytes.ChannelConfig
ChannelConfig. setAllocator(ByteBufAllocator allocator)
Set theByteBufAllocator
which is used for the channel to allocate buffers.ChannelConfig
DefaultChannelConfig. setAllocator(ByteBufAllocator allocator)
Constructors in io.netty.channel with parameters of type ByteBufAllocator Constructor Description PreferHeapByteBufAllocator(ByteBufAllocator allocator)
-
Uses of ByteBufAllocator in io.netty.channel.socket
Methods in io.netty.channel.socket with parameters of type ByteBufAllocator Modifier and Type Method Description DatagramChannelConfig
DatagramChannelConfig. setAllocator(ByteBufAllocator allocator)
DatagramChannelConfig
DefaultDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)
ServerSocketChannelConfig
DefaultServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)
SocketChannelConfig
DefaultSocketChannelConfig. setAllocator(ByteBufAllocator allocator)
ServerSocketChannelConfig
ServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)
SocketChannelConfig
SocketChannelConfig. setAllocator(ByteBufAllocator allocator)
-
Uses of ByteBufAllocator in io.netty.channel.socket.oio
Methods in io.netty.channel.socket.oio with parameters of type ByteBufAllocator Modifier and Type Method Description OioDatagramChannelConfig
DefaultOioDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)
OioServerSocketChannelConfig
DefaultOioServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)
Deprecated.OioSocketChannelConfig
DefaultOioSocketChannelConfig. setAllocator(ByteBufAllocator allocator)
Deprecated.OioDatagramChannelConfig
OioDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)
Deprecated.OioServerSocketChannelConfig
OioServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)
Deprecated.OioSocketChannelConfig
OioSocketChannelConfig. setAllocator(ByteBufAllocator allocator)
Deprecated. -
Uses of ByteBufAllocator in io.netty.handler.codec
Methods in io.netty.handler.codec that return ByteBufAllocator Modifier and Type Method Description ByteBufAllocator
ReplayingDecoderByteBuf. alloc()
Methods in io.netty.handler.codec with parameters of type ByteBufAllocator Modifier and Type Method Description ByteBuf
ByteToMessageDecoder.Cumulator. cumulate(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf in)
(package private) static ByteBuf
ByteToMessageDecoder. expandCumulation(ByteBufAllocator alloc, ByteBuf oldCumulation, ByteBuf in)
-
Uses of ByteBufAllocator in io.netty.handler.codec.base64
Methods in io.netty.handler.codec.base64 with parameters of type ByteBufAllocator Modifier and Type Method Description static ByteBuf
Base64. decode(ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator)
(package private) ByteBuf
Base64.Decoder. decode(ByteBuf src, int off, int len, ByteBufAllocator allocator, Base64Dialect dialect)
static ByteBuf
Base64. encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, ByteBufAllocator allocator)
-
Uses of ByteBufAllocator in io.netty.handler.codec.http
Methods in io.netty.handler.codec.http with parameters of type ByteBufAllocator Modifier and Type Method Description HttpContent
HttpChunkedInput. readChunk(ByteBufAllocator allocator)
-
Uses of ByteBufAllocator in io.netty.handler.codec.http.multipart
Methods in io.netty.handler.codec.http.multipart with parameters of type ByteBufAllocator Modifier and Type Method Description HttpContent
HttpPostRequestEncoder. readChunk(ByteBufAllocator allocator)
Returns the next available HttpChunk. -
Uses of ByteBufAllocator in io.netty.handler.codec.http.websocketx
Methods in io.netty.handler.codec.http.websocketx with parameters of type ByteBufAllocator Modifier and Type Method Description WebSocketFrame
WebSocketChunkedInput. readChunk(ByteBufAllocator allocator)
Fetches a chunked data from the stream. -
Uses of ByteBufAllocator in io.netty.handler.codec.http2
Methods in io.netty.handler.codec.http2 that return ByteBufAllocator Modifier and Type Method Description ByteBufAllocator
AbstractHttp2StreamChannel. alloc()
Methods in io.netty.handler.codec.http2 with parameters of type ByteBufAllocator Modifier and Type Method Description (package private) void
DefaultHttp2FrameReader.HeadersBlockBuilder. addFragment(ByteBuf fragment, int len, ByteBufAllocator alloc, boolean endOfHeaders)
Adds a fragment to the block.FullHttpMessage
InboundHttp2ToHttpAdapter.ImmediateSendDetector. copyIfNeeded(ByteBufAllocator allocator, FullHttpMessage msg)
Determine if a copy must be made after an immediate send happens.private FullHttpMessage
Http2StreamFrameToHttpObjectCodec. newFullMessage(int id, Http2Headers headers, ByteBufAllocator alloc)
protected FullHttpMessage
InboundHttp2ToHttpAdapter. newMessage(Http2Stream stream, Http2Headers headers, boolean validateHttpHeaders, ByteBufAllocator alloc)
Create a newFullHttpMessage
based upon the current connection parametersstatic FullHttpRequest
HttpConversionUtil. toFullHttpRequest(int streamId, Http2Headers http2Headers, ByteBufAllocator alloc, boolean validateHttpHeaders)
Create a new object to contain the request datastatic FullHttpResponse
HttpConversionUtil. toFullHttpResponse(int streamId, Http2Headers http2Headers, ByteBufAllocator alloc, boolean validateHttpHeaders)
Create a new object to contain the response data -
Uses of ByteBufAllocator in io.netty.handler.codec.mqtt
Methods in io.netty.handler.codec.mqtt with parameters of type ByteBufAllocator Modifier and Type Method Description (package private) static ByteBuf
MqttEncoder. doEncode(ByteBufAllocator byteBufAllocator, MqttMessage message)
This is the main encoding method.private static ByteBuf
MqttEncoder. encodeConnAckMessage(ByteBufAllocator byteBufAllocator, MqttConnAckMessage message)
private static ByteBuf
MqttEncoder. encodeConnectMessage(ByteBufAllocator byteBufAllocator, MqttConnectMessage message)
private static ByteBuf
MqttEncoder. encodeMessageWithOnlySingleByteFixedHeader(ByteBufAllocator byteBufAllocator, MqttMessage message)
private static ByteBuf
MqttEncoder. encodeMessageWithOnlySingleByteFixedHeaderAndMessageId(ByteBufAllocator byteBufAllocator, MqttMessage message)
private static ByteBuf
MqttEncoder. encodePublishMessage(ByteBufAllocator byteBufAllocator, MqttPublishMessage message)
private static ByteBuf
MqttEncoder. encodeSubAckMessage(ByteBufAllocator byteBufAllocator, MqttSubAckMessage message)
private static ByteBuf
MqttEncoder. encodeSubscribeMessage(ByteBufAllocator byteBufAllocator, MqttSubscribeMessage message)
private static ByteBuf
MqttEncoder. encodeUnsubscribeMessage(ByteBufAllocator byteBufAllocator, MqttUnsubscribeMessage message)
-
Uses of ByteBufAllocator in io.netty.handler.codec.redis
Methods in io.netty.handler.codec.redis with parameters of type ByteBufAllocator Modifier and Type Method Description private void
RedisEncoder. writeArrayHeader(ByteBufAllocator allocator, boolean isNull, long length, java.util.List<java.lang.Object> out)
private void
RedisEncoder. writeArrayHeader(ByteBufAllocator allocator, ArrayHeaderRedisMessage msg, java.util.List<java.lang.Object> out)
Write array header only without body.private void
RedisEncoder. writeArrayMessage(ByteBufAllocator allocator, ArrayRedisMessage msg, java.util.List<java.lang.Object> out)
Write full constructed array message.private static void
RedisEncoder. writeBulkStringContent(ByteBufAllocator allocator, BulkStringRedisContent msg, java.util.List<java.lang.Object> out)
private void
RedisEncoder. writeBulkStringHeader(ByteBufAllocator allocator, BulkStringHeaderRedisMessage msg, java.util.List<java.lang.Object> out)
private static void
RedisEncoder. writeErrorMessage(ByteBufAllocator allocator, ErrorRedisMessage msg, java.util.List<java.lang.Object> out)
private void
RedisEncoder. writeFullBulkStringMessage(ByteBufAllocator allocator, FullBulkStringRedisMessage msg, java.util.List<java.lang.Object> out)
private static void
RedisEncoder. writeInlineCommandMessage(ByteBufAllocator allocator, InlineCommandRedisMessage msg, java.util.List<java.lang.Object> out)
private void
RedisEncoder. writeIntegerMessage(ByteBufAllocator allocator, IntegerRedisMessage msg, java.util.List<java.lang.Object> out)
private void
RedisEncoder. writeRedisMessage(ByteBufAllocator allocator, RedisMessage msg, java.util.List<java.lang.Object> out)
private static void
RedisEncoder. writeSimpleStringMessage(ByteBufAllocator allocator, SimpleStringRedisMessage msg, java.util.List<java.lang.Object> out)
private static void
RedisEncoder. writeString(ByteBufAllocator allocator, RedisMessageType type, java.lang.String content, java.util.List<java.lang.Object> out)
-
Uses of ByteBufAllocator in io.netty.handler.codec.spdy
Methods in io.netty.handler.codec.spdy with parameters of type ByteBufAllocator Modifier and Type Method Description private static FullHttpRequest
SpdyHttpDecoder. createHttpRequest(SpdyHeadersFrame requestFrame, ByteBufAllocator alloc)
private static FullHttpResponse
SpdyHttpDecoder. createHttpResponse(SpdyHeadersFrame responseFrame, ByteBufAllocator alloc, boolean validateHeaders)
(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.(package private) void
SpdyHeaderBlockRawDecoder. decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame)
(package private) void
SpdyHeaderBlockZlibDecoder. decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame)
private int
SpdyHeaderBlockZlibDecoder. decompress(ByteBufAllocator alloc, SpdyHeadersFrame frame)
(package private) abstract ByteBuf
SpdyHeaderBlockEncoder. encode(ByteBufAllocator alloc, SpdyHeadersFrame frame)
private ByteBuf
SpdyHeaderBlockJZlibEncoder. encode(ByteBufAllocator alloc)
ByteBuf
SpdyHeaderBlockJZlibEncoder. encode(ByteBufAllocator alloc, SpdyHeadersFrame frame)
ByteBuf
SpdyHeaderBlockRawEncoder. encode(ByteBufAllocator alloc, SpdyHeadersFrame frame)
private ByteBuf
SpdyHeaderBlockZlibEncoder. encode(ByteBufAllocator alloc, int len)
ByteBuf
SpdyHeaderBlockZlibEncoder. 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)
-
Uses of ByteBufAllocator in io.netty.handler.ssl
Methods in io.netty.handler.ssl with parameters of type ByteBufAllocator Modifier and Type Method Description (package private) abstract ByteBuf
SslHandler.SslEngineType. allocateWrapBuffer(SslHandler handler, ByteBufAllocator allocator, int pendingBytes, int numComponents)
private static ByteBuf
PemX509Certificate. append(ByteBufAllocator allocator, boolean useDirect, PemEncoded encoded, int count, ByteBuf pem)
Appends thePemEncoded
value to theByteBuf
(last arg) and returns it.private static ByteBuf
PemX509Certificate. append(ByteBufAllocator allocator, boolean useDirect, java.security.cert.X509Certificate cert, int count, ByteBuf pem)
Appends theX509Certificate
value to theByteBuf
(last arg) and returns it.protected ByteBuf
SslHandler.SslHandlerCoalescingBufferQueue. compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
protected ByteBuf
SslHandler.SslHandlerCoalescingBufferQueue. composeFirst(ByteBufAllocator allocator, ByteBuf first)
private javax.net.ssl.SSLEngine
JdkSslContext. configureAndWrapEngine(javax.net.ssl.SSLEngine engine, ByteBufAllocator alloc)
private static ByteBuf
PemX509Certificate. newBuffer(ByteBufAllocator allocator, boolean useDirect, int initialCapacity)
javax.net.ssl.SSLEngine
DelegatingSslContext. newEngine(ByteBufAllocator alloc)
javax.net.ssl.SSLEngine
DelegatingSslContext. newEngine(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort)
javax.net.ssl.SSLEngine
JdkSslContext. newEngine(ByteBufAllocator alloc)
javax.net.ssl.SSLEngine
JdkSslContext. newEngine(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort)
abstract javax.net.ssl.SSLEngine
SslContext. newEngine(ByteBufAllocator alloc)
Creates a newSSLEngine
.abstract javax.net.ssl.SSLEngine
SslContext. newEngine(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort)
Creates a newSSLEngine
using advisory peer information.protected SslHandler
DelegatingSslContext. newHandler(ByteBufAllocator alloc, boolean startTls)
protected SslHandler
DelegatingSslContext. newHandler(ByteBufAllocator alloc, boolean startTls, java.util.concurrent.Executor executor)
protected SslHandler
DelegatingSslContext. 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, java.util.concurrent.Executor executor)
SslHandler
SslContext. newHandler(ByteBufAllocator alloc)
Create a new SslHandler.protected SslHandler
SslContext. newHandler(ByteBufAllocator alloc, boolean startTls)
Create a new SslHandler.protected SslHandler
SslContext. newHandler(ByteBufAllocator alloc, boolean startTls, java.util.concurrent.Executor executor)
Create a new SslHandler.SslHandler
SslContext. newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort)
Creates a newSslHandler
protected SslHandler
SslContext. newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean startTls)
Create a new SslHandler.protected SslHandler
SslContext. newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean startTls, java.util.concurrent.Executor delegatedTaskExecutor)
SslHandler
SslContext. newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, java.util.concurrent.Executor delegatedTaskExecutor)
Creates a newSslHandler
with advisory peer information.SslHandler
SslContext. newHandler(ByteBufAllocator alloc, java.util.concurrent.Executor delegatedTaskExecutor)
Creates a newSslHandler
.protected SslHandler
SniHandler. newSslHandler(SslContext context, ByteBufAllocator allocator)
(package private) static ByteBuf
SslUtils. toBase64(ByteBufAllocator allocator, ByteBuf src)
Same asBase64.encode(ByteBuf, boolean)
but allows the use of a customByteBufAllocator
.(package private) static PemEncoded
PemPrivateKey. toPEM(ByteBufAllocator allocator, boolean useDirect, byte[] bytes)
(package private) static PemEncoded
PemPrivateKey. toPEM(ByteBufAllocator allocator, boolean useDirect, java.security.PrivateKey key)
Creates aPemEncoded
value from thePrivateKey
.(package private) static PemEncoded
PemX509Certificate. toPEM(ByteBufAllocator allocator, boolean useDirect, java.security.cert.X509Certificate... chain)
Creates aPemEncoded
value from theX509Certificate
s.private javax.net.ssl.SSLEngineResult
SslHandler. wrap(ByteBufAllocator alloc, javax.net.ssl.SSLEngine engine, ByteBuf in, ByteBuf out)
javax.net.ssl.SSLEngine
JdkAlpnApplicationProtocolNegotiator.AlpnWrapper. wrapSslEngine(javax.net.ssl.SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)
javax.net.ssl.SSLEngine
JdkAlpnApplicationProtocolNegotiator.FailureWrapper. wrapSslEngine(javax.net.ssl.SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)
(package private) abstract javax.net.ssl.SSLEngine
JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory. wrapSslEngine(javax.net.ssl.SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)
Abstract factory pattern for wrapping anSSLEngine
object. -
Uses of ByteBufAllocator in io.netty.handler.stream
Methods in io.netty.handler.stream with parameters of type ByteBufAllocator Modifier and Type Method Description ByteBuf
ChunkedFile. readChunk(ByteBufAllocator allocator)
B
ChunkedInput. readChunk(ByteBufAllocator allocator)
Fetches a chunked data from the stream.ByteBuf
ChunkedNioFile. readChunk(ByteBufAllocator allocator)
ByteBuf
ChunkedNioStream. readChunk(ByteBufAllocator allocator)
ByteBuf
ChunkedStream. readChunk(ByteBufAllocator allocator)
-