Uses of Interface
io.netty.buffer.ByteBufAllocator
Packages that use ByteBufAllocator
Package
Description
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
BSD specific transport.
Abstract TCP and UDP socket interfaces which extend the core channel API.
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
Unix specific transport.
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.
Encoder, decoder and their related message types for HTTP.
HTTP multipart support.
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
Handlers for sending and receiving HTTP/2 frames.
Encoder, decoder and different Message Types for MQTT.
Encoder, decoder for Redis.
Encoder, decoder, session handler and their related message types for the SPDY protocol.
Capture data and write into Pcap format which helps in troubleshooting.
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError
.-
Uses of ByteBufAllocator in io.netty.buffer
Classes in io.netty.buffer that implement ByteBufAllocatorModifier and TypeClassDescriptionclass
SkeletalByteBufAllocator
implementation to extend.class
final class
SimplisticByteBufAllocator
implementation that does not pool anything.Fields in io.netty.buffer declared as ByteBufAllocatorModifier and TypeFieldDescriptionprivate final ByteBufAllocator
CompositeByteBuf.alloc
private final ByteBufAllocator
EmptyByteBuf.alloc
private final ByteBufAllocator
UnpooledDirectByteBuf.alloc
private final ByteBufAllocator
UnpooledHeapByteBuf.alloc
private static final ByteBufAllocator
Unpooled.ALLOC
private final ByteBufAllocator
FixedCompositeByteBuf.allocator
private ByteBufAllocator
PooledByteBuf.allocator
private final ByteBufAllocator
ReadOnlyByteBufferBuf.allocator
static final ByteBufAllocator
ByteBufAllocator.DEFAULT
(package private) static final ByteBufAllocator
ByteBufUtil.DEFAULT_ALLOCATOR
Methods in io.netty.buffer that return ByteBufAllocatorModifier and TypeMethodDescriptionfinal ByteBufAllocator
AbstractPooledDerivedByteBuf.alloc()
AbstractUnpooledSlicedByteBuf.alloc()
abstract ByteBufAllocator
ByteBuf.alloc()
Returns theByteBufAllocator
which created this buffer.CompositeByteBuf.alloc()
DuplicatedByteBuf.alloc()
Deprecated.EmptyByteBuf.alloc()
FixedCompositeByteBuf.alloc()
final ByteBufAllocator
PooledByteBuf.alloc()
ReadOnlyByteBuf.alloc()
Deprecated.ReadOnlyByteBufferBuf.alloc()
SwappedByteBuf.alloc()
Deprecated.UnpooledDirectByteBuf.alloc()
UnpooledHeapByteBuf.alloc()
final ByteBufAllocator
WrappedByteBuf.alloc()
final ByteBufAllocator
WrappedCompositeByteBuf.alloc()
Methods in io.netty.buffer with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionstatic ByteBuf
ByteBufUtil.encodeString
(ByteBufAllocator alloc, CharBuffer src, Charset charset) Encode the givenCharBuffer
using the givenCharset
into a newByteBuf
which is allocated via theByteBufAllocator
.static ByteBuf
ByteBufUtil.encodeString
(ByteBufAllocator alloc, CharBuffer src, 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, CharBuffer src, 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, ByteBuffer buffer, int position, int length, OutputStream out) static ByteBuf
ByteBufUtil.writeAscii
(ByteBufAllocator alloc, CharSequence seq) static ByteBuf
ByteBufUtil.writeUtf8
(ByteBufAllocator alloc, CharSequence seq) Constructors in io.netty.buffer with parameters of type ByteBufAllocatorModifierConstructorDescription(package private)
CompositeByteBuf
(ByteBufAllocator alloc) CompositeByteBuf
(ByteBufAllocator alloc, boolean direct, int maxNumComponents) private
CompositeByteBuf
(ByteBufAllocator alloc, boolean direct, int maxNumComponents, int initSize) CompositeByteBuf
(ByteBufAllocator alloc, boolean direct, int maxNumComponents, ByteBuf... buffers) (package private)
CompositeByteBuf
(ByteBufAllocator alloc, boolean direct, int maxNumComponents, ByteBuf[] buffers, int offset) (package private)
CompositeByteBuf
(ByteBufAllocator alloc, boolean direct, int maxNumComponents, CompositeByteBuf.ByteWrapper<T> wrapper, T[] buffers, int offset) CompositeByteBuf
(ByteBufAllocator alloc, boolean direct, int maxNumComponents, Iterable<ByteBuf> buffers) EmptyByteBuf
(ByteBufAllocator alloc) private
EmptyByteBuf
(ByteBufAllocator alloc, ByteOrder order) (package private)
FixedCompositeByteBuf
(ByteBufAllocator allocator, ByteBuf... buffers) (package private)
ReadOnlyByteBufferBuf
(ByteBufAllocator allocator, ByteBuffer buffer) (package private)
ReadOnlyUnsafeDirectByteBuf
(ByteBufAllocator allocator, ByteBuffer byteBuffer) UnpooledDirectByteBuf
(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) Creates a new direct buffer.protected
UnpooledDirectByteBuf
(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity) Creates a new direct buffer by wrapping the specified initial buffer.(package private)
UnpooledDirectByteBuf
(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity, boolean doFree, boolean slice) protected
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.protected
UnpooledUnsafeDirectByteBuf
(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity) Creates a new direct buffer by wrapping the specified initial buffer.(package private)
UnpooledUnsafeDirectByteBuf
(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity, boolean doFree) UnpooledUnsafeHeapByteBuf
(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) Creates a new heap buffer with a newly allocated byte array.(package private)
UnpooledUnsafeNoCleanerDirectByteBuf
(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) (package private)
WrappedUnpooledUnsafeDirectByteBuf
(ByteBufAllocator alloc, long memoryAddress, int size, boolean doFree) -
Uses of ByteBufAllocator in io.netty.channel
Classes in io.netty.channel that implement ByteBufAllocatorModifier and TypeClassDescriptionfinal class
Wraps anotherByteBufAllocator
and use heapbuffers everywhere except when a direct buffer is explicit requested.Fields in io.netty.channel declared as ByteBufAllocatorModifier and TypeFieldDescriptionprivate ByteBufAllocator
DefaultChannelConfig.allocator
private final ByteBufAllocator
PreferHeapByteBufAllocator.allocator
Fields in io.netty.channel with type parameters of type ByteBufAllocatorModifier and TypeFieldDescriptionstatic final ChannelOption
<ByteBufAllocator> ChannelOption.ALLOCATOR
Methods in io.netty.channel that return ByteBufAllocatorModifier and TypeMethodDescriptionAbstractChannel.alloc()
AbstractChannelHandlerContext.alloc()
Channel.alloc()
Return the assignedByteBufAllocator
which will be used to allocateByteBuf
s.ChannelHandlerContext.alloc()
Return the assignedByteBufAllocator
which will be used to allocateByteBuf
s.CombinedChannelDuplexHandler.DelegatingChannelHandlerContext.alloc()
ChannelConfig.getAllocator()
ReturnsByteBufAllocator
which is used for the channel to allocate buffers.DefaultChannelConfig.getAllocator()
Methods in io.netty.channel with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionDefaultMaxBytesRecvByteBufAllocator.HandleImpl.allocate
(ByteBufAllocator alloc) DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle.allocate
(ByteBufAllocator alloc) RecvByteBufAllocator.DelegatingHandle.allocate
(ByteBufAllocator alloc) 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 final ByteBuf
AbstractCoalescingBufferQueue.composeIntoComposite
(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) protected final ByteBuf
AbstractCoalescingBufferQueue.copyAndCompose
(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) final ByteBuf
AbstractCoalescingBufferQueue.remove
(ByteBufAllocator alloc, int bytes, ChannelPromise aggregatePromise) Remove aByteBuf
from the queue with the specified number of bytes.ChannelConfig.setAllocator
(ByteBufAllocator allocator) Set theByteBufAllocator
which is used for the channel to allocate buffers.DefaultChannelConfig.setAllocator
(ByteBufAllocator allocator) Constructors in io.netty.channel with parameters of type ByteBufAllocator -
Uses of ByteBufAllocator in io.netty.channel.epoll
Methods in io.netty.channel.epoll that return ByteBufAllocatorModifier and TypeMethodDescriptionprotected ByteBufAllocator
AbstractEpollStreamChannel.EpollSocketWritableByteChannel.alloc()
Methods in io.netty.channel.epoll with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionfinal ByteBuf
EpollRecvByteAllocatorHandle.allocate
(ByteBufAllocator alloc) private static ByteBuf
AbstractEpollChannel.newDirectBuffer0
(Object holder, ByteBuf buf, ByteBufAllocator alloc, int capacity) EpollChannelConfig.setAllocator
(ByteBufAllocator allocator) EpollDatagramChannelConfig.setAllocator
(ByteBufAllocator allocator) EpollDomainDatagramChannelConfig.setAllocator
(ByteBufAllocator allocator) EpollDomainSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) EpollServerChannelConfig.setAllocator
(ByteBufAllocator allocator) EpollServerSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) EpollSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) -
Uses of ByteBufAllocator in io.netty.channel.kqueue
Methods in io.netty.channel.kqueue that return ByteBufAllocatorModifier and TypeMethodDescriptionprotected ByteBufAllocator
AbstractKQueueStreamChannel.KQueueSocketWritableByteChannel.alloc()
Methods in io.netty.channel.kqueue with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionKQueueRecvByteAllocatorHandle.allocate
(ByteBufAllocator alloc) private static ByteBuf
AbstractKQueueChannel.newDirectBuffer0
(Object holder, ByteBuf buf, ByteBufAllocator alloc, int capacity) KQueueChannelConfig.setAllocator
(ByteBufAllocator allocator) KQueueDatagramChannelConfig.setAllocator
(ByteBufAllocator allocator) KQueueDomainDatagramChannelConfig.setAllocator
(ByteBufAllocator allocator) KQueueDomainSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) KQueueServerChannelConfig.setAllocator
(ByteBufAllocator allocator) KQueueServerSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) KQueueSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) -
Uses of ByteBufAllocator in io.netty.channel.socket
Methods in io.netty.channel.socket with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionDatagramChannelConfig.setAllocator
(ByteBufAllocator allocator) DefaultDatagramChannelConfig.setAllocator
(ByteBufAllocator allocator) DefaultServerSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) DefaultSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) DuplexChannelConfig.setAllocator
(ByteBufAllocator allocator) ServerSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) SocketChannelConfig.setAllocator
(ByteBufAllocator allocator) -
Uses of ByteBufAllocator in io.netty.channel.socket.oio
Methods in io.netty.channel.socket.oio with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionDefaultOioDatagramChannelConfig.setAllocator
(ByteBufAllocator allocator) DefaultOioServerSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) Deprecated.DefaultOioSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) Deprecated.OioDatagramChannelConfig.setAllocator
(ByteBufAllocator allocator) Deprecated.OioServerSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) Deprecated.OioSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) Deprecated. -
Uses of ByteBufAllocator in io.netty.channel.unix
Classes in io.netty.channel.unix that implement ByteBufAllocatorFields in io.netty.channel.unix declared as ByteBufAllocatorModifier and TypeFieldDescriptionprivate ByteBufAllocator
PreferredDirectByteBufAllocator.allocator
Methods in io.netty.channel.unix that return ByteBufAllocatorModifier and TypeMethodDescriptionprotected abstract ByteBufAllocator
SocketWritableByteChannel.alloc()
Methods in io.netty.channel.unix with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionDomainDatagramChannelConfig.setAllocator
(ByteBufAllocator allocator) DomainSocketChannelConfig.setAllocator
(ByteBufAllocator allocator) void
PreferredDirectByteBufAllocator.updateAllocator
(ByteBufAllocator allocator) -
Uses of ByteBufAllocator in io.netty.handler.codec
Methods in io.netty.handler.codec that return ByteBufAllocatorMethods in io.netty.handler.codec with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionByteToMessageDecoder.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 ByteBufAllocatorModifier and TypeMethodDescriptionstatic 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 -
Uses of ByteBufAllocator in io.netty.handler.codec.http.multipart
Methods in io.netty.handler.codec.http.multipart with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionHttpPostRequestEncoder.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 ByteBufAllocatorModifier and TypeMethodDescriptionWebSocketChunkedInput.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 ByteBufAllocatorMethods in io.netty.handler.codec.http2 with parameters of type ByteBufAllocatorModifier and TypeMethodDescription(package private) final void
DefaultHttp2FrameReader.HeadersBlockBuilder.addFragment
(ByteBuf fragment, int len, ByteBufAllocator alloc, boolean endOfHeaders) Adds a fragment to the block.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 parametersHttp2DataChunkedInput.readChunk
(ByteBufAllocator allocator) static 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 ByteBufAllocatorModifier and TypeMethodDescriptionprivate static ByteBuf
MqttEncoder.encodeMessageWithOnlySingleByteFixedHeader
(ByteBufAllocator byteBufAllocator, MqttMessage message) private static ByteBuf
MqttEncoder.encodeMessageWithOnlySingleByteFixedHeaderAndMessageId
(ByteBufAllocator byteBufAllocator, MqttMessage message) private static ByteBuf
MqttEncoder.encodeProperties
(ByteBufAllocator byteBufAllocator, MqttProperties mqttProperties) private static ByteBuf
MqttEncoder.encodePropertiesIfNeeded
(MqttVersion mqttVersion, ByteBufAllocator byteBufAllocator, MqttProperties mqttProperties) -
Uses of ByteBufAllocator in io.netty.handler.codec.redis
Methods in io.netty.handler.codec.redis with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionprivate void
RedisEncoder.writeArrayHeader
(ByteBufAllocator allocator, boolean isNull, long length, List<Object> out) private void
RedisEncoder.writeArrayHeader
(ByteBufAllocator allocator, ArrayHeaderRedisMessage msg, List<Object> out) Write array header only without body.private void
RedisEncoder.writeArrayMessage
(ByteBufAllocator allocator, ArrayRedisMessage msg, List<Object> out) Write full constructed array message.private static void
RedisEncoder.writeBulkStringContent
(ByteBufAllocator allocator, BulkStringRedisContent msg, List<Object> out) private void
RedisEncoder.writeBulkStringHeader
(ByteBufAllocator allocator, BulkStringHeaderRedisMessage msg, List<Object> out) private static void
RedisEncoder.writeErrorMessage
(ByteBufAllocator allocator, ErrorRedisMessage msg, List<Object> out) private void
RedisEncoder.writeFullBulkStringMessage
(ByteBufAllocator allocator, FullBulkStringRedisMessage msg, List<Object> out) private static void
RedisEncoder.writeInlineCommandMessage
(ByteBufAllocator allocator, InlineCommandRedisMessage msg, List<Object> out) private void
RedisEncoder.writeIntegerMessage
(ByteBufAllocator allocator, IntegerRedisMessage msg, List<Object> out) private void
RedisEncoder.writeRedisMessage
(ByteBufAllocator allocator, RedisMessage msg, List<Object> out) private static void
RedisEncoder.writeSimpleStringMessage
(ByteBufAllocator allocator, SimpleStringRedisMessage msg, List<Object> out) private static void
RedisEncoder.writeString
(ByteBufAllocator allocator, RedisMessageType type, String content, List<Object> out) -
Uses of ByteBufAllocator in io.netty.handler.codec.spdy
Methods in io.netty.handler.codec.spdy with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionprivate static FullHttpRequest
SpdyHttpDecoder.createHttpRequest
(SpdyHeadersFrame requestFrame, ByteBufAllocator alloc) private FullHttpResponse
SpdyHttpDecoder.createHttpResponse
(SpdyHeadersFrame responseFrame, ByteBufAllocator alloc) (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) SpdyHeaderBlockJZlibEncoder.encode
(ByteBufAllocator alloc, SpdyHeadersFrame frame) SpdyHeaderBlockRawEncoder.encode
(ByteBufAllocator alloc, SpdyHeadersFrame frame) private ByteBuf
SpdyHeaderBlockZlibEncoder.encode
(ByteBufAllocator alloc, int len) SpdyHeaderBlockZlibEncoder.encode
(ByteBufAllocator alloc, SpdyHeadersFrame frame) SpdyFrameEncoder.encodeDataFrame
(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data) SpdyFrameEncoder.encodeGoAwayFrame
(ByteBufAllocator allocator, int lastGoodStreamId, int statusCode) SpdyFrameEncoder.encodeHeadersFrame
(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock) SpdyFrameEncoder.encodePingFrame
(ByteBufAllocator allocator, int id) SpdyFrameEncoder.encodeRstStreamFrame
(ByteBufAllocator allocator, int streamId, int statusCode) SpdyFrameEncoder.encodeSettingsFrame
(ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame) SpdyFrameEncoder.encodeSynReplyFrame
(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock) SpdyFrameEncoder.encodeSynStreamFrame
(ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ByteBuf headerBlock) SpdyFrameEncoder.encodeWindowUpdateFrame
(ByteBufAllocator allocator, int streamId, int deltaWindowSize) private void
SpdyHeaderBlockZlibDecoder.ensureBuffer
(ByteBufAllocator alloc) -
Uses of ByteBufAllocator in io.netty.handler.pcap
Methods in io.netty.handler.pcap with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionprivate void
PcapWriteHandler.completeTCPWrite
(InetSocketAddress srcAddr, InetSocketAddress dstAddr, ByteBuf tcpBuf, ByteBufAllocator byteBufAllocator, ChannelHandlerContext ctx) Write TCP/IP L3 and L2 here.private void
PcapWriteHandler.completeUDPWrite
(InetSocketAddress srcAddr, InetSocketAddress dstAddr, ByteBuf udpBuf, ByteBufAllocator byteBufAllocator, ChannelHandlerContext ctx) Write UDP/IP L3 and L2 here. -
Uses of ByteBufAllocator in io.netty.handler.ssl
Fields in io.netty.handler.ssl declared as ByteBufAllocatorModifier and TypeFieldDescription(package private) final ByteBufAllocator
ReferenceCountedOpenSslEngine.alloc
Methods in io.netty.handler.ssl with parameters of type ByteBufAllocatorModifier and TypeMethodDescription(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, X509Certificate cert, int count, ByteBuf pem) Appends theX509Certificate
value to theByteBuf
(last arg) and returns it.(package private) OpenSslKeyMaterial
OpenSslCachingKeyMaterialProvider.chooseKeyMaterial
(ByteBufAllocator allocator, String alias) (package private) OpenSslKeyMaterial
OpenSslKeyMaterialProvider.chooseKeyMaterial
(ByteBufAllocator allocator, String alias) Returns theOpenSslKeyMaterial
ornull
(if none) that should be used during the handshake by OpenSSL.(package private) OpenSslKeyMaterial
OpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi.ProviderFactory.OpenSslPopulatedKeyMaterialProvider.chooseKeyMaterial
(ByteBufAllocator allocator, String alias) protected ByteBuf
SslHandler.SslHandlerCoalescingBufferQueue.compose
(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) protected ByteBuf
SslHandler.SslHandlerCoalescingBufferQueue.composeFirst
(ByteBufAllocator allocator, ByteBuf first) private SSLEngine
JdkSslContext.configureAndWrapEngine
(SSLEngine engine, ByteBufAllocator alloc) private static ByteBuf
PemX509Certificate.newBuffer
(ByteBufAllocator allocator, boolean useDirect, int initialCapacity) final SSLEngine
DelegatingSslContext.newEngine
(ByteBufAllocator alloc) final SSLEngine
DelegatingSslContext.newEngine
(ByteBufAllocator alloc, String peerHost, int peerPort) final SSLEngine
JdkSslContext.newEngine
(ByteBufAllocator alloc) final SSLEngine
JdkSslContext.newEngine
(ByteBufAllocator alloc, String peerHost, int peerPort) final SSLEngine
ReferenceCountedOpenSslContext.newEngine
(ByteBufAllocator alloc) Returns a new server-sideSSLEngine
with the current configuration.final SSLEngine
ReferenceCountedOpenSslContext.newEngine
(ByteBufAllocator alloc, String peerHost, int peerPort) abstract SSLEngine
SslContext.newEngine
(ByteBufAllocator alloc) Creates a newSSLEngine
.abstract SSLEngine
SslContext.newEngine
(ByteBufAllocator alloc, String peerHost, int peerPort) Creates a newSSLEngine
using advisory peer information.(package private) final SSLEngine
OpenSslContext.newEngine0
(ByteBufAllocator alloc, String peerHost, int peerPort, boolean jdkCompatibilityMode) (package private) SSLEngine
ReferenceCountedOpenSslContext.newEngine0
(ByteBufAllocator alloc, String peerHost, int peerPort, boolean jdkCompatibilityMode) protected final SslHandler
DelegatingSslContext.newHandler
(ByteBufAllocator alloc, boolean startTls) protected SslHandler
DelegatingSslContext.newHandler
(ByteBufAllocator alloc, boolean startTls, Executor executor) protected final SslHandler
DelegatingSslContext.newHandler
(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls) protected SslHandler
DelegatingSslContext.newHandler
(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor) protected final SslHandler
ReferenceCountedOpenSslContext.newHandler
(ByteBufAllocator alloc, boolean startTls) protected SslHandler
ReferenceCountedOpenSslContext.newHandler
(ByteBufAllocator alloc, boolean startTls, Executor executor) protected final SslHandler
ReferenceCountedOpenSslContext.newHandler
(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls) protected SslHandler
ReferenceCountedOpenSslContext.newHandler
(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor) final 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, Executor executor) Create a new SslHandler.final SslHandler
SslContext.newHandler
(ByteBufAllocator alloc, String peerHost, int peerPort) Creates a newSslHandler
protected SslHandler
SslContext.newHandler
(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls) Create a new SslHandler.protected SslHandler
SslContext.newHandler
(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor delegatedTaskExecutor) SslContext.newHandler
(ByteBufAllocator alloc, String peerHost, int peerPort, Executor delegatedTaskExecutor) Creates a newSslHandler
with advisory peer information.SslContext.newHandler
(ByteBufAllocator alloc, 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 long
ReferenceCountedOpenSslContext.toBIO
(ByteBufAllocator allocator, PemEncoded pem) (package private) static long
ReferenceCountedOpenSslContext.toBIO
(ByteBufAllocator allocator, X509Certificate... certChain) (package private) static long
ReferenceCountedOpenSslContext.toBIO
(ByteBufAllocator allocator, PrivateKey key) (package private) static PemEncoded
PemPrivateKey.toPEM
(ByteBufAllocator allocator, boolean useDirect, byte[] bytes) (package private) static PemEncoded
PemPrivateKey.toPEM
(ByteBufAllocator allocator, boolean useDirect, PrivateKey key) Creates aPemEncoded
value from thePrivateKey
.(package private) static PemEncoded
PemX509Certificate.toPEM
(ByteBufAllocator allocator, boolean useDirect, X509Certificate... chain) Creates aPemEncoded
value from theX509Certificate
s.private SSLEngineResult
SslHandler.wrap
(ByteBufAllocator alloc, SSLEngine engine, ByteBuf in, ByteBuf out) private SSLEngineResult
SslHandler.wrapMultiple
(ByteBufAllocator alloc, SSLEngine engine, ByteBuf in, ByteBuf out) JdkAlpnApplicationProtocolNegotiator.AlpnWrapper.wrapSslEngine
(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer) JdkAlpnApplicationProtocolNegotiator.FailureWrapper.wrapSslEngine
(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer) (package private) abstract SSLEngine
JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine
(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer) Abstract factory pattern for wrapping anSSLEngine
object.Constructors in io.netty.handler.ssl with parameters of type ByteBufAllocatorModifierConstructorDescription(package private)
OpenSslEngine
(OpenSslContext context, ByteBufAllocator alloc, String peerHost, int peerPort, boolean jdkCompatibilityMode) (package private)
ReferenceCountedOpenSslEngine
(ReferenceCountedOpenSslContext context, ByteBufAllocator alloc, String peerHost, int peerPort, boolean jdkCompatibilityMode, boolean leakDetection) Create a new instance. -
Uses of ByteBufAllocator in io.netty.handler.stream
Methods in io.netty.handler.stream with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionChunkedFile.readChunk
(ByteBufAllocator allocator) ChunkedInput.readChunk
(ByteBufAllocator allocator) Fetches a chunked data from the stream.ChunkedNioFile.readChunk
(ByteBufAllocator allocator) ChunkedNioStream.readChunk
(ByteBufAllocator allocator) ChunkedStream.readChunk
(ByteBufAllocator allocator)