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 SCTP socket interfaces which extend the core channel API.
Abstract TCP and UDP socket interfaces which extend the core channel API.
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
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 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 ByteBufAllocatorModifier and TypeFieldDescriptionprivate final ByteBufAllocatorCompositeByteBuf.allocprivate final ByteBufAllocatorEmptyByteBuf.allocprivate final ByteBufAllocatorUnpooledDirectByteBuf.allocprivate final ByteBufAllocatorUnpooledHeapByteBuf.allocprivate static final ByteBufAllocatorUnpooled.ALLOCprivate final ByteBufAllocatorAdaptiveByteBufAllocator.DirectChunkAllocator.allocatorprivate final ByteBufAllocatorAdaptiveByteBufAllocator.HeapChunkAllocator.allocatorprivate final ByteBufAllocatorFixedCompositeByteBuf.allocatorprivate ByteBufAllocatorPooledByteBuf.allocatorprivate final ByteBufAllocatorReadOnlyByteBufferBuf.allocatorstatic final ByteBufAllocatorByteBufAllocator.DEFAULT(package private) static final ByteBufAllocatorByteBufUtil.DEFAULT_ALLOCATORMethods in io.netty.buffer that return ByteBufAllocatorModifier and TypeMethodDescriptionfinal ByteBufAllocatorAbstractPooledDerivedByteBuf.alloc()AbstractUnpooledSlicedByteBuf.alloc()AdaptivePoolingAllocator.AdaptiveByteBuf.alloc()abstract ByteBufAllocatorByteBuf.alloc()Returns theByteBufAllocatorwhich created this buffer.CompositeByteBuf.alloc()DuplicatedByteBuf.alloc()Deprecated.EmptyByteBuf.alloc()FixedCompositeByteBuf.alloc()final ByteBufAllocatorPooledByteBuf.alloc()ReadOnlyByteBuf.alloc()Deprecated.ReadOnlyByteBufferBuf.alloc()SwappedByteBuf.alloc()Deprecated.UnpooledDirectByteBuf.alloc()UnpooledHeapByteBuf.alloc()final ByteBufAllocatorWrappedByteBuf.alloc()final ByteBufAllocatorWrappedCompositeByteBuf.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.(package private) static ByteBufByteBufUtil.encodeString0(ByteBufAllocator alloc, boolean enforceHeap, CharBuffer src, Charset charset, int extraCapacity) (package private) static UnpooledUnsafeDirectByteBufUnsafeByteBufUtil.newUnsafeDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity, boolean allowSectionedInternalNioBufferAccess) static ByteBufByteBufUtil.readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length) Read the given amount of bytes into a newByteBufthat is allocated from theByteBufAllocator.(package private) static voidByteBufUtil.readBytes(ByteBufAllocator allocator, ByteBuffer buffer, int position, int length, OutputStream out) static ByteBufByteBufUtil.writeAscii(ByteBufAllocator alloc, CharSequence seq) static ByteBufByteBufUtil.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) privateCompositeByteBuf(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) privateDirectChunkAllocator(ByteBufAllocator allocator) EmptyByteBuf(ByteBufAllocator alloc) privateEmptyByteBuf(ByteBufAllocator alloc, ByteOrder order) (package private)FixedCompositeByteBuf(ByteBufAllocator allocator, ByteBuf... buffers) privateHeapChunkAllocator(ByteBufAllocator allocator) (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.(package private)UnpooledDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity, boolean allowSectionedInternalNioBufferAccess) Creates a new direct buffer.protectedUnpooledDirectByteBuf(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) 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.UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) Creates a new direct buffer.(package private)UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity, boolean allowSectionedInternalNioBufferAccess) protectedUnpooledUnsafeDirectByteBuf(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, boolean allowSectionedInternalNioBufferAccess) (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 classWraps anotherByteBufAllocatorand use heapbuffers everywhere except when a direct buffer is explicit requested.Fields in io.netty.channel declared as ByteBufAllocatorModifier and TypeFieldDescriptionprivate ByteBufAllocatorDefaultChannelConfig.allocatorprivate final ByteBufAllocatorPreferHeapByteBufAllocator.allocatorFields 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 TypeMethodDescriptionAbstractChannel.alloc()AbstractChannelHandlerContext.alloc()Channel.alloc()Return the assignedByteBufAllocatorwhich will be used to allocateByteBufs.ChannelHandlerContext.alloc()Return the assignedByteBufAllocatorwhich will be used to allocateByteBufs.CombinedChannelDuplexHandler.DelegatingChannelHandlerContext.alloc()ChannelConfig.getAllocator()ReturnsByteBufAllocatorwhich 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 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 that return ByteBufAllocatorModifier and TypeMethodDescriptionprotected ByteBufAllocatorAbstractEpollStreamChannel.EpollSocketWritableByteChannel.alloc()Methods in io.netty.channel.epoll with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionfinal ByteBufEpollRecvByteAllocatorHandle.allocate(ByteBufAllocator alloc) private static ByteBufAbstractEpollChannel.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 ByteBufAllocatorAbstractKQueueStreamChannel.KQueueSocketWritableByteChannel.alloc()Methods in io.netty.channel.kqueue with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionKQueueRecvByteAllocatorHandle.allocate(ByteBufAllocator alloc) private static ByteBufAbstractKQueueChannel.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.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.nio
Methods in io.netty.channel.socket.nio with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionNioDomainSocketChannel.NioDomainSocketChannelConfig.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 ByteBufAllocatorPreferredDirectByteBufAllocator.allocatorMethods 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.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 ByteBufByteToMessageDecoder.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 ByteBufBase64.decode(ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator) (package private) ByteBufBase64.Decoder.decode(ByteBuf src, int off, int len, ByteBufAllocator allocator, Base64Dialect dialect) 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 that return ByteBufAllocatorMethods in io.netty.handler.codec.http2 with parameters of type ByteBufAllocatorModifier and TypeMethodDescription(package private) final voidDefaultHttp2FrameReader.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 FullHttpMessageHttp2StreamFrameToHttpObjectCodec.newFullMessage(int id, Http2Headers headers, ByteBufAllocator alloc) protected 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.mqtt
Methods in io.netty.handler.codec.mqtt with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionprivate static ByteBufMqttEncoder.encodeMessageWithOnlySingleByteFixedHeader(ByteBufAllocator byteBufAllocator, MqttMessage message) private static ByteBufMqttEncoder.encodeMessageWithOnlySingleByteFixedHeaderAndMessageId(ByteBufAllocator byteBufAllocator, MqttMessage message) private static ByteBufMqttEncoder.encodeProperties(ByteBufAllocator byteBufAllocator, MqttProperties mqttProperties) private static ByteBufMqttEncoder.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 voidRedisEncoder.writeArrayHeader(ByteBufAllocator allocator, boolean isNull, long length, List<Object> out) private voidRedisEncoder.writeArrayHeader(ByteBufAllocator allocator, ArrayHeaderRedisMessage msg, List<Object> out) Write array header only without body.private voidRedisEncoder.writeArrayMessage(ByteBufAllocator allocator, ArrayRedisMessage msg, List<Object> out) Write full constructed array message.private static voidRedisEncoder.writeBulkStringContent(ByteBufAllocator allocator, BulkStringRedisContent msg, List<Object> out) private voidRedisEncoder.writeBulkStringHeader(ByteBufAllocator allocator, BulkStringHeaderRedisMessage msg, List<Object> out) private static voidRedisEncoder.writeErrorMessage(ByteBufAllocator allocator, ErrorRedisMessage msg, List<Object> out) private voidRedisEncoder.writeFullBulkStringMessage(ByteBufAllocator allocator, FullBulkStringRedisMessage msg, List<Object> out) private static voidRedisEncoder.writeInlineCommandMessage(ByteBufAllocator allocator, InlineCommandRedisMessage msg, List<Object> out) private voidRedisEncoder.writeIntegerMessage(ByteBufAllocator allocator, IntegerRedisMessage msg, List<Object> out) private voidRedisEncoder.writeRedisMessage(ByteBufAllocator allocator, RedisMessage msg, List<Object> out) private static voidRedisEncoder.writeSimpleStringMessage(ByteBufAllocator allocator, SimpleStringRedisMessage msg, List<Object> out) private static voidRedisEncoder.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 FullHttpRequestSpdyHttpDecoder.createHttpRequest(SpdyHeadersFrame requestFrame, ByteBufAllocator alloc) private FullHttpResponseSpdyHttpDecoder.createHttpResponse(SpdyHeadersFrame responseFrame, ByteBufAllocator alloc) (package private) abstract voidSpdyHeaderBlockDecoder.decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.(package private) voidSpdyHeaderBlockRawDecoder.decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) (package private) voidSpdyHeaderBlockZlibDecoder.decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) private intSpdyHeaderBlockZlibDecoder.decompress(ByteBufAllocator alloc, SpdyHeadersFrame frame) (package private) abstract ByteBufSpdyHeaderBlockEncoder.encode(ByteBufAllocator alloc, SpdyHeadersFrame frame) private ByteBufSpdyHeaderBlockJZlibEncoder.encode(ByteBufAllocator alloc) SpdyHeaderBlockJZlibEncoder.encode(ByteBufAllocator alloc, SpdyHeadersFrame frame) SpdyHeaderBlockRawEncoder.encode(ByteBufAllocator alloc, SpdyHeadersFrame frame) private ByteBufSpdyHeaderBlockZlibEncoder.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.encodeUnknownFrame(ByteBufAllocator allocator, int frameType, byte flags, ByteBuf data) SpdyFrameEncoder.encodeWindowUpdateFrame(ByteBufAllocator allocator, int streamId, int deltaWindowSize) private voidSpdyHeaderBlockZlibDecoder.ensureBuffer(ByteBufAllocator alloc) -
Uses of ByteBufAllocator in io.netty.handler.pcap
Methods in io.netty.handler.pcap with parameters of type ByteBufAllocatorModifier and TypeMethodDescriptionprivate voidPcapWriteHandler.completeTCPWrite(InetSocketAddress srcAddr, InetSocketAddress dstAddr, ByteBuf tcpBuf, ByteBufAllocator byteBufAllocator, ChannelHandlerContext ctx) Write TCP/IP L3 and L2 here.private voidPcapWriteHandler.completeUDPWrite(InetSocketAddress srcAddr, InetSocketAddress dstAddr, ByteBuf udpBuf, ByteBufAllocator byteBufAllocator, ChannelHandlerContext ctx) Write UDP/IP L3 and L2 here.private voidPcapWriteHandler.handleTcpPacket(ChannelHandlerContext ctx, ByteBuf packet, boolean isWriteOperation, ByteBufAllocator byteBufAllocator) -
Uses of ByteBufAllocator in io.netty.handler.ssl
Fields in io.netty.handler.ssl declared as ByteBufAllocatorModifier and TypeFieldDescription(package private) final ByteBufAllocatorReferenceCountedOpenSslEngine.allocMethods in io.netty.handler.ssl with parameters of type ByteBufAllocatorModifier and TypeMethodDescription(package private) abstract ByteBufSslHandler.SslEngineType.allocateWrapBuffer(SslHandler handler, ByteBufAllocator allocator, int pendingBytes, int numComponents) private static ByteBufPemX509Certificate.append(ByteBufAllocator allocator, boolean useDirect, PemEncoded encoded, int count, ByteBuf pem) Appends thePemEncodedvalue to theByteBuf(last arg) and returns it.private static ByteBufPemX509Certificate.append(ByteBufAllocator allocator, boolean useDirect, X509Certificate cert, int count, ByteBuf pem) Appends theX509Certificatevalue to theByteBuf(last arg) and returns it.(package private) OpenSslKeyMaterialOpenSslCachingKeyMaterialProvider.chooseKeyMaterial(ByteBufAllocator allocator, String alias) (package private) OpenSslKeyMaterialOpenSslKeyMaterialProvider.chooseKeyMaterial(ByteBufAllocator allocator, String alias) Returns theOpenSslKeyMaterialornull(if none) that should be used during the handshake by OpenSSL.(package private) OpenSslKeyMaterialOpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi.ProviderFactory.OpenSslPopulatedKeyMaterialProvider.chooseKeyMaterial(ByteBufAllocator allocator, String alias) protected ByteBufSslHandlerCoalescingBufferQueue.compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) protected ByteBufSslHandlerCoalescingBufferQueue.composeFirst(ByteBufAllocator allocator, ByteBuf first, int bufferSize) private SSLEngineJdkSslContext.configureAndWrapEngine(SSLEngine engine, ByteBufAllocator alloc) private static ByteBufPemX509Certificate.newBuffer(ByteBufAllocator allocator, boolean useDirect, int initialCapacity) final 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.(package private) final SSLEngineOpenSslContext.newEngine0(ByteBufAllocator alloc, String peerHost, int peerPort, boolean jdkCompatibilityMode) (package private) SSLEngineReferenceCountedOpenSslContext.newEngine0(ByteBufAllocator alloc, String peerHost, int peerPort, boolean jdkCompatibilityMode) 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) (package private) static ByteBufSslUtils.toBase64(ByteBufAllocator allocator, ByteBuf src) Same asBase64.encode(ByteBuf, boolean)but allows the use of a customByteBufAllocator.(package private) static longReferenceCountedOpenSslContext.toBIO(ByteBufAllocator allocator, PemEncoded pem) (package private) static longReferenceCountedOpenSslContext.toBIO(ByteBufAllocator allocator, X509Certificate... certChain) (package private) static longReferenceCountedOpenSslContext.toBIO(ByteBufAllocator allocator, PrivateKey key) (package private) static PemEncodedPemPrivateKey.toPEM(ByteBufAllocator allocator, boolean useDirect, byte[] bytes) (package private) static PemEncodedPemPrivateKey.toPEM(ByteBufAllocator allocator, boolean useDirect, PrivateKey key) Creates aPemEncodedvalue from thePrivateKey.(package private) static PemEncodedPemX509Certificate.toPEM(ByteBufAllocator allocator, boolean useDirect, X509Certificate... chain) Creates aPemEncodedvalue from theX509Certificates.private SSLEngineResultSslHandler.wrap(ByteBufAllocator alloc, SSLEngine engine, ByteBuf in, ByteBuf out) private SSLEngineResultSslHandler.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 SSLEngineJdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer) Abstract factory pattern for wrapping anSSLEngineobject.Constructors in io.netty.handler.ssl with parameters of type ByteBufAllocatorModifierConstructorDescription(package private)OpenSslEngine(OpenSslContext context, ByteBufAllocator alloc, String peerHost, int peerPort, boolean jdkCompatibilityMode, String endpointIdentificationAlgorithm) (package private)ReferenceCountedOpenSslEngine(ReferenceCountedOpenSslContext context, ByteBufAllocator alloc, String peerHost, int peerPort, boolean jdkCompatibilityMode, boolean leakDetection, String endpointIdentificationAlgorithm) 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)