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.epoll Optimized transport for linux which uses EPOLL Edge-Triggered Mode for maximal performance.io.netty.channel.kqueue BSD specific transport.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.channel.unix Unix specific transport.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.spdy Encoder, decoder, session handler and their related message types for the SPDY protocol.io.netty.handler.ssl 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 classAbstractByteBufAllocatorSkeletalByteBufAllocatorimplementation to extend.classPooledByteBufAllocatorclassUnpooledByteBufAllocatorSimplisticByteBufAllocatorimplementation that does not pool anything.Fields in io.netty.buffer declared as ByteBufAllocator Modifier and Type Field Description static ByteBufAllocatorByteBufAllocator. DEFAULTMethods in io.netty.buffer that return ByteBufAllocator Modifier and Type Method Description abstract ByteBufAllocatorByteBuf. alloc()Returns theByteBufAllocatorwhich created this buffer.ByteBufAllocatorCompositeByteBuf. alloc()ByteBufAllocatorDuplicatedByteBuf. alloc()Deprecated.ByteBufAllocatorEmptyByteBuf. alloc()ByteBufAllocatorReadOnlyByteBuf. alloc()Deprecated.ByteBufAllocatorSwappedByteBuf. alloc()Deprecated.ByteBufAllocatorUnpooledDirectByteBuf. alloc()ByteBufAllocatorUnpooledHeapByteBuf. alloc()Methods in io.netty.buffer with parameters of type ByteBufAllocator Modifier and Type Method Description static 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 ByteBufAllocator Constructor Description CompositeByteBuf(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.UnpooledDirectByteBuf(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity)Creates a new direct buffer by wrapping the specified initial buffer.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, 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 ByteBufAllocator Modifier and Type Class Description classPreferHeapByteBufAllocatorWraps anotherByteBufAllocatorand use heapbuffers everywhere except when a direct buffer is explicit requested.Fields in io.netty.channel with type parameters of type ByteBufAllocator Modifier and Type Field Description static ChannelOption<ByteBufAllocator>ChannelOption. ALLOCATORMethods in io.netty.channel that return ByteBufAllocator Modifier and Type Method Description ByteBufAllocatorAbstractChannel. alloc()ByteBufAllocatorChannel. alloc()Return the assignedByteBufAllocatorwhich will be used to allocateByteBufs.ByteBufAllocatorChannelHandlerContext. alloc()Return the assignedByteBufAllocatorwhich will be used to allocateByteBufs.ByteBufAllocatorChannelConfig. getAllocator()ReturnsByteBufAllocatorwhich is used for the channel to allocate buffers.ByteBufAllocatorDefaultChannelConfig. getAllocator()Methods in io.netty.channel with parameters of type ByteBufAllocator Modifier and Type Method Description ByteBufDefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle. allocate(ByteBufAllocator alloc)ByteBufRecvByteBufAllocator.DelegatingHandle. allocate(ByteBufAllocator alloc)ByteBufRecvByteBufAllocator.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)Calculate the firstByteBufwhich will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(ByteBufAllocator, ByteBuf, ByteBuf).protected ByteBufAbstractCoalescingBufferQueue. composeIntoComposite(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)protected ByteBufAbstractCoalescingBufferQueue. copyAndCompose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)ByteBufAbstractCoalescingBufferQueue. remove(ByteBufAllocator alloc, int bytes, ChannelPromise aggregatePromise)Remove aByteBuffrom the queue with the specified number of bytes.ChannelConfigChannelConfig. setAllocator(ByteBufAllocator allocator)Set theByteBufAllocatorwhich is used for the channel to allocate buffers.ChannelConfigDefaultChannelConfig. 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.epoll
Methods in io.netty.channel.epoll with parameters of type ByteBufAllocator Modifier and Type Method Description EpollChannelConfigEpollChannelConfig. setAllocator(ByteBufAllocator allocator)EpollDatagramChannelConfigEpollDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)EpollDomainDatagramChannelConfigEpollDomainDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)EpollDomainSocketChannelConfigEpollDomainSocketChannelConfig. setAllocator(ByteBufAllocator allocator)EpollServerChannelConfigEpollServerChannelConfig. setAllocator(ByteBufAllocator allocator)EpollServerSocketChannelConfigEpollServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)EpollSocketChannelConfigEpollSocketChannelConfig. setAllocator(ByteBufAllocator allocator) -
Uses of ByteBufAllocator in io.netty.channel.kqueue
Methods in io.netty.channel.kqueue with parameters of type ByteBufAllocator Modifier and Type Method Description KQueueChannelConfigKQueueChannelConfig. setAllocator(ByteBufAllocator allocator)KQueueDatagramChannelConfigKQueueDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)KQueueDomainDatagramChannelConfigKQueueDomainDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)KQueueDomainSocketChannelConfigKQueueDomainSocketChannelConfig. setAllocator(ByteBufAllocator allocator)KQueueServerChannelConfigKQueueServerChannelConfig. setAllocator(ByteBufAllocator allocator)KQueueServerSocketChannelConfigKQueueServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)KQueueSocketChannelConfigKQueueSocketChannelConfig. setAllocator(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 DatagramChannelConfigDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)DatagramChannelConfigDefaultDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)ServerSocketChannelConfigDefaultServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)SocketChannelConfigDefaultSocketChannelConfig. setAllocator(ByteBufAllocator allocator)DuplexChannelConfigDuplexChannelConfig. setAllocator(ByteBufAllocator allocator)ServerSocketChannelConfigServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)SocketChannelConfigSocketChannelConfig. 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 OioServerSocketChannelConfigDefaultOioServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)Deprecated.OioSocketChannelConfigDefaultOioSocketChannelConfig. setAllocator(ByteBufAllocator allocator)Deprecated.OioDatagramChannelConfigOioDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)Deprecated.OioServerSocketChannelConfigOioServerSocketChannelConfig. setAllocator(ByteBufAllocator allocator)Deprecated.OioSocketChannelConfigOioSocketChannelConfig. setAllocator(ByteBufAllocator allocator)Deprecated. -
Uses of ByteBufAllocator in io.netty.channel.unix
Classes in io.netty.channel.unix that implement ByteBufAllocator Modifier and Type Class Description classPreferredDirectByteBufAllocatorMethods in io.netty.channel.unix that return ByteBufAllocator Modifier and Type Method Description protected abstract ByteBufAllocatorSocketWritableByteChannel. alloc()Methods in io.netty.channel.unix with parameters of type ByteBufAllocator Modifier and Type Method Description DomainDatagramChannelConfigDomainDatagramChannelConfig. setAllocator(ByteBufAllocator allocator)DomainSocketChannelConfigDomainSocketChannelConfig. setAllocator(ByteBufAllocator allocator)voidPreferredDirectByteBufAllocator. updateAllocator(ByteBufAllocator allocator) -
Uses of ByteBufAllocator in io.netty.handler.codec
Methods in io.netty.handler.codec with parameters of type ByteBufAllocator Modifier and Type Method Description ByteBufByteToMessageDecoder.Cumulator. cumulate(ByteBufAllocator alloc, ByteBuf cumulation, 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 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 Modifier and Type Method Description HttpContentHttpChunkedInput. 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 HttpContentHttpPostRequestEncoder. 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 WebSocketFrameWebSocketChunkedInput. 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 ByteBufAllocator Modifier and Type Method Description protected FullHttpMessageInboundHttp2ToHttpAdapter. newMessage(Http2Stream stream, Http2Headers headers, boolean validateHttpHeaders, ByteBufAllocator alloc)Create a newFullHttpMessagebased upon the current connection parametersHttp2DataFrameHttp2DataChunkedInput. 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.spdy
Methods in io.netty.handler.codec.spdy with parameters of type ByteBufAllocator Modifier and Type Method Description ByteBufSpdyHeaderBlockRawEncoder. encode(ByteBufAllocator alloc, SpdyHeadersFrame frame)ByteBufSpdyFrameEncoder. encodeDataFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data)ByteBufSpdyFrameEncoder. encodeGoAwayFrame(ByteBufAllocator allocator, int lastGoodStreamId, int statusCode)ByteBufSpdyFrameEncoder. encodeHeadersFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)ByteBufSpdyFrameEncoder. encodePingFrame(ByteBufAllocator allocator, int id)ByteBufSpdyFrameEncoder. encodeRstStreamFrame(ByteBufAllocator allocator, int streamId, int statusCode)ByteBufSpdyFrameEncoder. encodeSettingsFrame(ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame)ByteBufSpdyFrameEncoder. encodeSynReplyFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)ByteBufSpdyFrameEncoder. encodeSynStreamFrame(ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ByteBuf headerBlock)ByteBufSpdyFrameEncoder. 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 ByteBufAllocator Modifier and Type Method Description SSLEngineDelegatingSslContext. newEngine(ByteBufAllocator alloc)SSLEngineDelegatingSslContext. newEngine(ByteBufAllocator alloc, String peerHost, int peerPort)SSLEngineJdkSslContext. newEngine(ByteBufAllocator alloc)SSLEngineJdkSslContext. 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 SslHandlerDelegatingSslContext. newHandler(ByteBufAllocator alloc, boolean startTls)protected SslHandlerDelegatingSslContext. newHandler(ByteBufAllocator alloc, boolean startTls, Executor executor)protected SslHandlerDelegatingSslContext. newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls)protected SslHandlerDelegatingSslContext. newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor)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.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)SslHandlerSslContext. newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, Executor delegatedTaskExecutor)Creates a newSslHandlerwith advisory peer information.SslHandlerSslContext. 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 ByteBufAllocator Modifier and Type Method Description ByteBufChunkedFile. readChunk(ByteBufAllocator allocator)BChunkedInput. readChunk(ByteBufAllocator allocator)Fetches a chunked data from the stream.ByteBufChunkedNioFile. readChunk(ByteBufAllocator allocator)ByteBufChunkedNioStream. readChunk(ByteBufAllocator allocator)ByteBufChunkedStream. readChunk(ByteBufAllocator allocator)
-