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.
A serial and parallel port communication transport based on RXTX.
Abstract SCTP socket interfaces which extend the core channel API.
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).
UDT Transport.
Unix specific transport.
io_uring is a high I/O performance scalable interface for fully
asynchronous Linux syscalls.
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.
QUIC implementation
Encoder, decoder, session handler and their related message types for the SPDY protocol.
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 TypeClassDescriptionclassSkeletalByteBufAllocatorimplementation to extend.final classAn auto-tuning poolingByteBufAllocator, that follows an anti-generational hypothesis.classfinal classSimplisticByteBufAllocatorimplementation that does not pool anything.Fields in io.netty.buffer declared as ByteBufAllocatorMethods in io.netty.buffer that return ByteBufAllocatorModifier and TypeMethodDescriptionabstract ByteBufAllocatorByteBuf.alloc()Returns theByteBufAllocatorwhich created this buffer.CompositeByteBuf.alloc()DuplicatedByteBuf.alloc()Deprecated.EmptyByteBuf.alloc()ReadOnlyByteBuf.alloc()Deprecated.SwappedByteBuf.alloc()Deprecated.UnpooledDirectByteBuf.alloc()UnpooledHeapByteBuf.alloc()final ByteBufAllocatorWrappedByteBuf.alloc()Methods in io.netty.buffer with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionstatic ByteBufByteBufUtil.encodeString(ByteBufAllocator alloc, CharBuffer src, Charset charset) Encode the givenCharBufferusing the givenCharsetinto a newByteBufwhich is allocated via theByteBufAllocator.static ByteBufByteBufUtil.encodeString(ByteBufAllocator alloc, CharBuffer src, Charset charset, int extraCapacity) Encode the givenCharBufferusing the givenCharsetinto a newByteBufwhich is allocated via theByteBufAllocator.static ByteBufByteBufUtil.readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length) Read the given amount of bytes into a newByteBufthat is allocated from theByteBufAllocator.static ByteBufByteBufUtil.writeAscii(ByteBufAllocator alloc, CharSequence seq) static ByteBufByteBufUtil.writeUtf8(ByteBufAllocator alloc, CharSequence seq) Constructors in io.netty.buffer with parameters of type ByteBufAllocatorModifierConstructorDescriptionCompositeByteBuf(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, int initialCapacity, int maxCapacity) Creates a new direct buffer.protectedUnpooledDirectByteBuf(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity) Creates a new direct buffer by wrapping the specified initial buffer.protectedUnpooledHeapByteBuf(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.protectedUnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, boolean slice, ByteBuffer initialBuffer, int maxCapacity) Creates a new direct ByteBuf by wrapping the specified initial buffer.UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) Creates a new direct buffer.protectedUnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity) Creates a new direct buffer by wrapping the specified initial buffer.UnpooledUnsafeHeapByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) Creates a new heap buffer with a newly allocated byte array. -
Uses of ByteBufAllocator in io.netty.channel
Classes in io.netty.channel that implement ByteBufAllocatorModifier and TypeClassDescriptionfinal classWraps anotherByteBufAllocatorand use heapbuffers everywhere except when a direct buffer is explicit requested.Fields in io.netty.channel with type parameters of type ByteBufAllocatorModifier and TypeFieldDescriptionstatic final ChannelOption<ByteBufAllocator> ChannelOption.ALLOCATORMethods in io.netty.channel that return ByteBufAllocatorModifier and TypeMethodDescriptiondefault ByteBufAllocatorChannel.alloc()Return the assignedByteBufAllocatorwhich will be used to allocateByteBufs.ChannelHandlerContext.alloc()Return the assignedByteBufAllocatorwhich will be used to allocateByteBufs.ChannelConfig.getAllocator()ReturnsByteBufAllocatorwhich is used for the channel to allocate buffers.DefaultChannelConfig.getAllocator()Methods in io.netty.channel with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionDefaultMaxMessagesRecvByteBufAllocator.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 ByteBufAbstractCoalescingBufferQueue.compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) Calculate the result ofcurrent + next.protected ByteBufCoalescingBufferQueue.compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) protected ByteBufAbstractCoalescingBufferQueue.composeFirst(ByteBufAllocator allocator, ByteBuf first) Deprecated.Use {AbstractCoalescingBufferQueue#composeFirst(ByteBufAllocator, ByteBuf, int)}protected ByteBufAbstractCoalescingBufferQueue.composeFirst(ByteBufAllocator allocator, ByteBuf first, int bufferSize) Calculate the firstByteBufwhich will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(ByteBufAllocator, ByteBuf, ByteBuf).protected final ByteBufAbstractCoalescingBufferQueue.composeIntoComposite(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) protected final ByteBufAbstractCoalescingBufferQueue.copyAndCompose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) final ByteBufAbstractCoalescingBufferQueue.remove(ByteBufAllocator alloc, int bytes, ChannelPromise aggregatePromise) Remove aByteBuffrom the queue with the specified number of bytes.ChannelConfig.setAllocator(ByteBufAllocator allocator) Set theByteBufAllocatorwhich 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 with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionEpollChannelConfig.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 with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionKQueueChannelConfig.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.rxtx
Methods in io.netty.channel.rxtx with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionRxtxChannelConfig.setAllocator(ByteBufAllocator allocator) Deprecated. -
Uses of ByteBufAllocator in io.netty.channel.sctp
Methods in io.netty.channel.sctp with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionDefaultSctpChannelConfig.setAllocator(ByteBufAllocator allocator) DefaultSctpServerChannelConfig.setAllocator(ByteBufAllocator allocator) SctpChannelConfig.setAllocator(ByteBufAllocator allocator) SctpServerChannelConfig.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 TypeMethodDescriptionDefaultOioServerSocketChannelConfig.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.udt
Methods in io.netty.channel.udt with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionDefaultUdtChannelConfig.setAllocator(ByteBufAllocator allocator) Deprecated.DefaultUdtServerChannelConfig.setAllocator(ByteBufAllocator allocator) Deprecated.UdtChannelConfig.setAllocator(ByteBufAllocator allocator) Deprecated.UdtServerChannelConfig.setAllocator(ByteBufAllocator allocator) Deprecated. -
Uses of ByteBufAllocator in io.netty.channel.unix
Classes in io.netty.channel.unix that implement ByteBufAllocatorMethods in io.netty.channel.unix that return ByteBufAllocatorModifier and TypeMethodDescriptionprotected abstract ByteBufAllocatorSocketWritableByteChannel.alloc()Methods in io.netty.channel.unix with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionDomainDatagramChannelConfig.setAllocator(ByteBufAllocator allocator) DomainSocketChannelConfig.setAllocator(ByteBufAllocator allocator) voidPreferredDirectByteBufAllocator.updateAllocator(ByteBufAllocator allocator) -
Uses of ByteBufAllocator in io.netty.channel.uring
Constructors in io.netty.channel.uring with parameters of type ByteBufAllocatorModifierConstructorDescriptionprotectedAbstractIoUringBufferRingAllocator(ByteBufAllocator allocator, boolean largeAllocation) Creates new instance.Creates new instance.IoUringAdaptiveBufferRingAllocator(ByteBufAllocator allocator, int minimum, int initial, int maximum) Creates new instance.IoUringAdaptiveBufferRingAllocator(ByteBufAllocator allocator, int minimum, int initial, int maximum, boolean largeAllocation) Creates new instance.IoUringFixedBufferRingAllocator(ByteBufAllocator allocator, boolean largeAllocation, int bufferSize) Create a new instanceIoUringFixedBufferRingAllocator(ByteBufAllocator allocator, int bufferSize) Create a new instance -
Uses of ByteBufAllocator in io.netty.handler.codec
Methods in io.netty.handler.codec with parameters of type ByteBufAllocator -
Uses of ByteBufAllocator in io.netty.handler.codec.base64
Methods in io.netty.handler.codec.base64 with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionstatic ByteBufBase64.decode(ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator) static ByteBufBase64.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 with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionprotected FullHttpMessageInboundHttp2ToHttpAdapter.newMessage(Http2Stream stream, Http2Headers headers, boolean validateHttpHeaders, ByteBufAllocator alloc) Create a newFullHttpMessagebased upon the current connection parametersHttp2DataChunkedInput.readChunk(ByteBufAllocator allocator) static FullHttpRequestHttpConversionUtil.toFullHttpRequest(int streamId, Http2Headers http2Headers, ByteBufAllocator alloc, boolean validateHttpHeaders) Create a new object to contain the request datastatic FullHttpResponseHttpConversionUtil.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.quic
Methods in io.netty.handler.codec.quic with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionabstract QuicSslEngineQuicSslContext.newEngine(ByteBufAllocator alloc) abstract QuicSslEngineQuicSslContext.newEngine(ByteBufAllocator alloc, String peerHost, int peerPort) QuicChannelConfig.setAllocator(ByteBufAllocator allocator) QuicStreamChannelConfig.setAllocator(ByteBufAllocator allocator) -
Uses of ByteBufAllocator in io.netty.handler.codec.spdy
Methods in io.netty.handler.codec.spdy with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionSpdyHeaderBlockRawEncoder.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.encodeUnknownFrame(ByteBufAllocator allocator, int frameType, byte flags, ByteBuf data) SpdyFrameEncoder.encodeWindowUpdateFrame(ByteBufAllocator allocator, int streamId, int deltaWindowSize) -
Uses of ByteBufAllocator in io.netty.handler.ssl
Methods in io.netty.handler.ssl with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionfinal SSLEngineDelegatingSslContext.newEngine(ByteBufAllocator alloc) final SSLEngineDelegatingSslContext.newEngine(ByteBufAllocator alloc, String peerHost, int peerPort) final SSLEngineJdkSslContext.newEngine(ByteBufAllocator alloc) final SSLEngineJdkSslContext.newEngine(ByteBufAllocator alloc, String peerHost, int peerPort) final SSLEngineReferenceCountedOpenSslContext.newEngine(ByteBufAllocator alloc) Returns a new server-sideSSLEnginewith the current configuration.final SSLEngineReferenceCountedOpenSslContext.newEngine(ByteBufAllocator alloc, String peerHost, int peerPort) abstract SSLEngineSslContext.newEngine(ByteBufAllocator alloc) Creates a newSSLEngine.abstract SSLEngineSslContext.newEngine(ByteBufAllocator alloc, String peerHost, int peerPort) Creates a newSSLEngineusing advisory peer information.protected final SslHandlerDelegatingSslContext.newHandler(ByteBufAllocator alloc, boolean startTls) protected SslHandlerDelegatingSslContext.newHandler(ByteBufAllocator alloc, boolean startTls, Executor executor) protected final SslHandlerDelegatingSslContext.newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls) protected SslHandlerDelegatingSslContext.newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor) protected final SslHandlerReferenceCountedOpenSslContext.newHandler(ByteBufAllocator alloc, boolean startTls) protected SslHandlerReferenceCountedOpenSslContext.newHandler(ByteBufAllocator alloc, boolean startTls, Executor executor) protected final SslHandlerReferenceCountedOpenSslContext.newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls) protected SslHandlerReferenceCountedOpenSslContext.newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor) final SslHandlerSslContext.newHandler(ByteBufAllocator alloc) Create a new SslHandler.protected SslHandlerSslContext.newHandler(ByteBufAllocator alloc, boolean startTls) Create a new SslHandler.protected SslHandlerSslContext.newHandler(ByteBufAllocator alloc, boolean startTls, Executor executor) Create a new SslHandler.final SslHandlerSslContext.newHandler(ByteBufAllocator alloc, String peerHost, int peerPort) Creates a newSslHandlerprotected SslHandlerSslContext.newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls) Create a new SslHandler.protected SslHandlerSslContext.newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor delegatedTaskExecutor) SslContext.newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, Executor delegatedTaskExecutor) Creates a newSslHandlerwith advisory peer information.SslContext.newHandler(ByteBufAllocator alloc, Executor delegatedTaskExecutor) Creates a newSslHandler.protected SslHandlerSniHandler.newSslHandler(SslContext context, ByteBufAllocator allocator) -
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)