Uses of Interface
io.netty5.buffer.api.BufferAllocator
-
Packages that use BufferAllocator Package Description io.netty5.buffer Abstraction of a byte buffer - the fundamental data structure to represent a low-level binary and text message.io.netty5.buffer.api IncubatingBufferAPI, as a proposed alternative toByteBuf.io.netty5.buffer.api.pool A poolingBufferAllocatorimplementation based on jemalloc.io.netty5.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty5.channel.epoll Optimized transport for linux which uses EPOLL Edge-Triggered Mode for maximal performance.io.netty5.channel.internal Internal utilities for channel implementations.io.netty5.channel.unix Unix specific transport.io.netty5.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.netty5.handler.codec.base64 io.netty5.handler.codec.compression io.netty5.handler.codec.dns DNS codec.io.netty5.handler.codec.http Encoder, decoder and their related message types for HTTP.io.netty5.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.io.netty5.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty5.handler.ssl io.netty5.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError. -
-
Uses of BufferAllocator in io.netty5.buffer
Methods in io.netty5.buffer with parameters of type BufferAllocator Modifier and Type Method Description static BufferBufferUtil. writeAscii(BufferAllocator alloc, CharSequence seq) -
Uses of BufferAllocator in io.netty5.buffer.api
Classes in io.netty5.buffer.api that implement BufferAllocator Modifier and Type Class Description classSensitiveBufferAllocatorThisBufferAllocatoris for allocating off-heapBuffers that may contain sensitive information, which should be erased from memory (overwritten) when the buffer is closed.Methods in io.netty5.buffer.api that return BufferAllocator Modifier and Type Method Description BufferAllocatorAllocatorControl. getAllocator()Get theBufferAllocatorinstance that is the source of this allocator control.static BufferAllocatorDefaultBufferAllocators. offHeapAllocator()Get the shared off-heap allocator.static BufferAllocatorBufferAllocator. offHeapPooled()Produces a poolingBufferAllocatorthat allocates and recycles off-heap buffers.static BufferAllocatorBufferAllocator. offHeapUnpooled()Produces aBufferAllocatorthat allocates unpooled, off-heap buffers.static BufferAllocatorDefaultBufferAllocators. onHeapAllocator()Get the shared on-heap allocator.static BufferAllocatorBufferAllocator. onHeapPooled()Produces a poolingBufferAllocatorthat allocates and recycles on-heap buffers.static BufferAllocatorBufferAllocator. onHeapUnpooled()Produces aBufferAllocatorthat allocates unpooled, on-heap buffers.static BufferAllocatorDefaultBufferAllocators. preferredAllocator()Get the preferred, shared allocator.static BufferAllocatorSensitiveBufferAllocator. sensitiveOffHeapAllocator()Get the sensitive off-heap buffer allocator instance.Methods in io.netty5.buffer.api with parameters of type BufferAllocator Modifier and Type Method Description static CompositeBufferCompositeBuffer. compose(BufferAllocator allocator)Create an empty composite buffer, that has no components. -
Uses of BufferAllocator in io.netty5.buffer.api.pool
Classes in io.netty5.buffer.api.pool that implement BufferAllocator Modifier and Type Class Description classPooledBufferAllocator -
Uses of BufferAllocator in io.netty5.channel
Fields in io.netty5.channel with type parameters of type BufferAllocator Modifier and Type Field Description static ChannelOption<BufferAllocator>ChannelOption. BUFFER_ALLOCATORMethods in io.netty5.channel that return BufferAllocator Modifier and Type Method Description BufferAllocatorAbstractChannel. bufferAllocator()BufferAllocatorChannel. bufferAllocator()Return the assignedBufferAllocatorwhich will be used to allocateBuffers.default BufferAllocatorChannelHandlerContext. bufferAllocator()Return the assignedBufferAllocatorwhich will be used to allocateBuffers.Methods in io.netty5.channel with parameters of type BufferAllocator Modifier and Type Method Description BufferDefaultMaxMessagesRecvBufferAllocator.MaxMessageHandle. allocate(BufferAllocator alloc)BufferRecvBufferAllocator.Handle. allocate(BufferAllocator alloc)Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space.protected abstract BufferAbstractCoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)Calculate the result ofcurrent + next.protected BufferCoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)protected BufferAbstractCoalescingBufferQueue. composeFirst(BufferAllocator allocator, Buffer first)Calculate the firstBufferwhich will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(BufferAllocator, Buffer, Buffer).protected BufferAbstractCoalescingBufferQueue. composeIntoComposite(BufferAllocator alloc, Buffer cumulation, Buffer next)protected BufferAbstractCoalescingBufferQueue. copyAndCompose(BufferAllocator alloc, Buffer cumulation, Buffer next, int minIncrement)BufferAbstractCoalescingBufferQueue. remove(BufferAllocator alloc, int bytes, Promise<Void> aggregatePromise)Remove aBufferfrom the queue with the specified number of bytes.voidAbstractChannel. setBufferAllocator(BufferAllocator bufferAllocator) -
Uses of BufferAllocator in io.netty5.channel.epoll
Methods in io.netty5.channel.epoll with parameters of type BufferAllocator Modifier and Type Method Description protected voidEpollDatagramChannel. epollInReady(RecvBufferAllocator.Handle handle, BufferAllocator recvBufferAllocator, boolean receivedRdHup)protected voidEpollServerSocketChannel. epollInReady(RecvBufferAllocator.Handle allocHandle, BufferAllocator recvBufferAllocator, boolean receivedRdHup)protected voidEpollSocketChannel. epollInReady(RecvBufferAllocator.Handle handle, BufferAllocator recvBufferAllocator, boolean receivedRdHup) -
Uses of BufferAllocator in io.netty5.channel.internal
Methods in io.netty5.channel.internal that return BufferAllocator Modifier and Type Method Description BufferAllocatorDelegatingChannelHandlerContext. bufferAllocator() -
Uses of BufferAllocator in io.netty5.channel.unix
Methods in io.netty5.channel.unix that return BufferAllocator Modifier and Type Method Description protected abstract BufferAllocatorSocketWritableByteChannel. alloc() -
Uses of BufferAllocator in io.netty5.handler.codec
Methods in io.netty5.handler.codec with parameters of type BufferAllocator Modifier and Type Method Description protected abstract voidMessageAggregator. aggregate(BufferAllocator allocator, A aggregated, C content)Aggregated the passedcontentin the passedaggregate.protected abstract AMessageAggregator. beginAggregation(BufferAllocator allocator, S start)Creates a new aggregated message from the specified start message.BufferByteToMessageDecoder.Cumulator. cumulate(BufferAllocator alloc, Buffer cumulation, Buffer in)protected voidMessageAggregator. finishAggregation(BufferAllocator allocator, A aggregated)Invoked when the specifiedaggregatedmessage is about to be passed to the next handler in the pipeline.Constructors in io.netty5.handler.codec with parameters of type BufferAllocator Constructor Description ByteToMessageCodec(BufferAllocator allocator)Create a new instance which will try to detect the types to match out of the type parameter of the class.ByteToMessageCodec(Class<? extends I> outboundMessageType, BufferAllocator allocator)Create a new instance -
Uses of BufferAllocator in io.netty5.handler.codec.base64
Methods in io.netty5.handler.codec.base64 with parameters of type BufferAllocator Modifier and Type Method Description static BufferBase64. decode(Buffer src, int off, int len, Base64Dialect dialect, BufferAllocator allocator)static BufferBase64. encode(Buffer src, int off, int len, boolean breakLines, Base64Dialect dialect, BufferAllocator allocator) -
Uses of BufferAllocator in io.netty5.handler.codec.compression
Methods in io.netty5.handler.codec.compression with parameters of type BufferAllocator Modifier and Type Method Description BufferBrotliCompressor. compress(Buffer input, BufferAllocator allocator)BufferBzip2Compressor. compress(Buffer in, BufferAllocator allocator)BufferCompressor. compress(Buffer input, BufferAllocator allocator)This method will read from the inputBufferand compress into a newBufferthat will be allocated (if needed) from theBufferAllocator.BufferFastLzCompressor. compress(Buffer in, BufferAllocator allocator)BufferLz4Compressor. compress(Buffer input, BufferAllocator allocator)BufferLzfCompressor. compress(Buffer in, BufferAllocator allocator)BufferLzmaCompressor. compress(Buffer in, BufferAllocator allocator)BufferSnappyCompressor. compress(Buffer in, BufferAllocator allocator)BufferZlibCompressor. compress(Buffer uncompressed, BufferAllocator allocator)BufferZstdCompressor. compress(Buffer in, BufferAllocator allocator)BufferBrotliDecompressor. decompress(Buffer input, BufferAllocator allocator)BufferBzip2Decompressor. decompress(Buffer in, BufferAllocator allocator)BufferDecompressor. decompress(Buffer input, BufferAllocator allocator)This method will read from the inputBufferand decompress into a newBufferthat will be allocated (if needed) from theBufferAllocator.BufferFastLzDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferLz4Decompressor. decompress(Buffer in, BufferAllocator allocator)BufferLzfDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferSnappyDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferZlibDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferBrotliCompressor. finish(BufferAllocator allocator)BufferBzip2Compressor. finish(BufferAllocator allocator)BufferCompressor. finish(BufferAllocator allocator)By calling this method we signal that the compression stream is marked as finish.BufferFastLzCompressor. finish(BufferAllocator allocator)BufferLz4Compressor. finish(BufferAllocator allocator)BufferLzfCompressor. finish(BufferAllocator allocator)BufferLzmaCompressor. finish(BufferAllocator allocator)BufferSnappyCompressor. finish(BufferAllocator allocator)BufferZlibCompressor. finish(BufferAllocator allocator)BufferZstdCompressor. finish(BufferAllocator allocator)protected BufferZlibDecompressor. prepareDecompressBuffer(BufferAllocator allocator, Buffer buffer, int preferredSize)Allocate or expand the decompression buffer, without exceeding the maximum allocation. -
Uses of BufferAllocator in io.netty5.handler.codec.dns
Methods in io.netty5.handler.codec.dns with parameters of type BufferAllocator Modifier and Type Method Description <T extends DnsRecord>
TDefaultDnsRecordDecoder. decodeRecord(BufferAllocator allocator, Buffer in)protected DnsRecordDefaultDnsRecordDecoder. decodeRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, BufferAllocator allocator, Buffer in, int offset, int length)Decodes a record from the information decoded so far byDnsRecordDecoder.decodeRecord(BufferAllocator, Buffer).<T extends DnsRecord>
TDnsRecordDecoder. decodeRecord(BufferAllocator allocator, Buffer in)Decodes a DNS record into its object representation. -
Uses of BufferAllocator in io.netty5.handler.codec.http
Methods in io.netty5.handler.codec.http with parameters of type BufferAllocator Modifier and Type Method Description protected HttpResponseHttpServerExpectContinueHandler. acceptMessage(BufferAllocator allocator, HttpRequest request)Produces aHttpResponseforHttpRequests which define an expectation.protected voidHttpObjectAggregator. aggregate(BufferAllocator allocator, FullHttpMessage<?> aggregated, HttpContent<C> content)protected FullHttpMessage<?>HttpObjectAggregator. beginAggregation(BufferAllocator allocator, HttpMessage start)protected BufferHttpObjectEncoder. crlfBuffer(BufferAllocator allocator)protected voidHttpObjectAggregator. finishAggregation(BufferAllocator allocator, FullHttpMessage<?> aggregated)HttpContent<?>HttpChunkedInput. readChunk(BufferAllocator allocator)protected HttpResponseHttpServerExpectContinueHandler. rejectResponse(BufferAllocator allocator, HttpRequest request)Returns the appropriate 4XXHttpResponsefor the givenHttpRequest.protected BufferHttpObjectEncoder. zeroCrlfCrlfBuffer(BufferAllocator allocator)Constructors in io.netty5.handler.codec.http with parameters of type BufferAllocator Constructor Description EmptyLastHttpContent(BufferAllocator allocator) -
Uses of BufferAllocator in io.netty5.handler.codec.http.websocketx
Methods in io.netty5.handler.codec.http.websocketx with parameters of type BufferAllocator Modifier and Type Method Description protected voidWebSocketFrameAggregator. aggregate(BufferAllocator allocator, WebSocketFrame aggregated, ContinuationWebSocketFrame content)protected WebSocketFrameWebSocketFrameAggregator. beginAggregation(BufferAllocator allocator, WebSocketFrame start)protected abstract FullHttpRequestWebSocketClientHandshaker. newHandshakeRequest(BufferAllocator allocator)Returns a new {@link FullHttpRequest) which will be used for the handshake.protected FullHttpRequestWebSocketClientHandshaker13. newHandshakeRequest(BufferAllocator allocator)/**protected abstract FullHttpResponseWebSocketServerHandshaker. newHandshakeResponse(BufferAllocator allocator, FullHttpRequest req, HttpHeaders responseHeaders)Returns a new {@link FullHttpResponse) which will be used for as response to the handshake request.protected FullHttpResponseWebSocketServerHandshaker13. newHandshakeResponse(BufferAllocator allocator, FullHttpRequest req, HttpHeaders headers)Handle the web socket handshake for the web socket specification HyBi versions 13-17.WebSocketFrameWebSocketChunkedInput. readChunk(BufferAllocator allocator)Fetches a chunked data from the stream.Constructors in io.netty5.handler.codec.http.websocketx with parameters of type BufferAllocator Constructor Description CloseWebSocketFrame(BufferAllocator allocator, boolean finalFragment, int rsv)Creates a new close frame with no losing status code and no reason textCloseWebSocketFrame(BufferAllocator allocator, boolean finalFragment, int rsv, int statusCode, String reasonText)Creates a new close frame with closing status code and reason textCloseWebSocketFrame(BufferAllocator allocator, int statusCode, String reasonText)Creates a new empty close frame with closing status code and reason textCloseWebSocketFrame(BufferAllocator allocator, WebSocketCloseStatus status)Creates a new empty close frame with closing status code and reason textCloseWebSocketFrame(BufferAllocator allocator, WebSocketCloseStatus status, String reasonText)Creates a new empty close frame with closing status code and reason textContinuationWebSocketFrame(BufferAllocator allocator, boolean finalFragment, int rsv, String text)Creates a new continuation frame with the specified text dataTextWebSocketFrame(BufferAllocator allocator, boolean finalFragment, int rsv, String text)Creates a new text frame with the specified text string.TextWebSocketFrame(BufferAllocator allocator, String text)Creates a new text frame with the specified text string. -
Uses of BufferAllocator in io.netty5.handler.codec.http2
Methods in io.netty5.handler.codec.http2 with parameters of type BufferAllocator Modifier and Type Method Description protected FullHttpMessage<?>InboundHttp2ToHttpAdapter. newMessage(Http2Stream stream, Http2Headers headers, boolean validateHttpHeaders, BufferAllocator alloc)Create a newFullHttpMessagebased upon the current connection parametersHttp2DataFrameHttp2DataChunkedInput. readChunk(BufferAllocator allocator)static FullHttpRequestHttpConversionUtil. toFullHttpRequest(int streamId, Http2Headers http2Headers, BufferAllocator alloc, boolean validateHttpHeaders)Create a new object to contain the request datastatic FullHttpRequestHttpConversionUtil. toFullHttpRequest(int streamId, Http2Headers http2Headers, Buffer content, boolean validateHttpHeaders, BufferAllocator allocator)Create a new object to contain the request datastatic FullHttpResponseHttpConversionUtil. toFullHttpResponse(int streamId, Http2Headers http2Headers, BufferAllocator alloc, boolean validateHttpHeaders)Create a new object to contain the response data -
Uses of BufferAllocator in io.netty5.handler.ssl
Methods in io.netty5.handler.ssl with parameters of type BufferAllocator Modifier and Type Method Description SSLEngineDelegatingSslContext. newEngine(BufferAllocator alloc)SSLEngineDelegatingSslContext. newEngine(BufferAllocator alloc, String peerHost, int peerPort)SSLEngineJdkSslContext. newEngine(BufferAllocator alloc)SSLEngineJdkSslContext. newEngine(BufferAllocator alloc, String peerHost, int peerPort)SSLEngineReferenceCountedOpenSslContext. newEngine(BufferAllocator alloc)Returns a new server-sideSSLEnginewith the current configuration.SSLEngineReferenceCountedOpenSslContext. newEngine(BufferAllocator alloc, String peerHost, int peerPort)abstract SSLEngineSslContext. newEngine(BufferAllocator alloc)Creates a newSSLEngine.abstract SSLEngineSslContext. newEngine(BufferAllocator alloc, String peerHost, int peerPort)Creates a newSSLEngineusing advisory peer information.protected SslHandlerDelegatingSslContext. newHandler(BufferAllocator alloc, boolean startTls)protected SslHandlerDelegatingSslContext. newHandler(BufferAllocator alloc, boolean startTls, Executor executor)protected SslHandlerDelegatingSslContext. newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls)protected SslHandlerDelegatingSslContext. newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor)protected SslHandlerReferenceCountedOpenSslContext. newHandler(BufferAllocator alloc, boolean startTls)protected SslHandlerReferenceCountedOpenSslContext. newHandler(BufferAllocator alloc, boolean startTls, Executor executor)protected SslHandlerReferenceCountedOpenSslContext. newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls)protected SslHandlerReferenceCountedOpenSslContext. newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor)SslHandlerSslContext. newHandler(BufferAllocator alloc)Create a new SslHandler.protected SslHandlerSslContext. newHandler(BufferAllocator alloc, boolean startTls)Create a new SslHandler.protected SslHandlerSslContext. newHandler(BufferAllocator alloc, boolean startTls, Executor executor)Create a new SslHandler.SslHandlerSslContext. newHandler(BufferAllocator alloc, String peerHost, int peerPort)Creates a newSslHandlerprotected SslHandlerSslContext. newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls)Create a new SslHandler.protected SslHandlerSslContext. newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor delegatedTaskExecutor)SslHandlerSslContext. newHandler(BufferAllocator alloc, String peerHost, int peerPort, Executor delegatedTaskExecutor)Creates a newSslHandlerwith advisory peer information.SslHandlerSslContext. newHandler(BufferAllocator alloc, Executor delegatedTaskExecutor)Creates a newSslHandler.protected SslHandlerSniHandler. newSslHandler(SslContext context, BufferAllocator allocator) -
Uses of BufferAllocator in io.netty5.handler.stream
Methods in io.netty5.handler.stream with parameters of type BufferAllocator Modifier and Type Method Description BufferChunkedFile. readChunk(BufferAllocator allocator)BChunkedInput. readChunk(BufferAllocator allocator)Fetches a chunked data from the stream.BufferChunkedNioFile. readChunk(BufferAllocator allocator)BufferChunkedNioStream. readChunk(BufferAllocator allocator)BufferChunkedStream. readChunk(BufferAllocator allocator)
-