Module io.netty5.buffer
Package io.netty5.buffer.api
Incubating
Buffer
API, as a proposed alternative to ByteBuf
.-
Interface Summary Interface Description AllocationType An object used by buffer allocators to communicate desirable properties of an allocation to a memory manager, such as whether an allocation should be off-heap.AllocatorControl Methods for accessing and controlling the internals of an allocator.Buffer A life cycled buffer of memory, with separate reader and writer offsets.BufferAccessor This interface is just the primitive data accessor methods thatBuffer
exposes.BufferAllocator Interface for allocatingBuffer
s.ByteCursor The ByteCursor scans through a sequence of bytes.ComponentIterator<T extends ComponentIterator.Next> A facade for iterating the readable or writable components of aBuffer
.ComponentIterator.Next This interface exposes external iteration on components.CompositeBuffer TheCompositeBuffer
is a concreteBuffer
implementation that make a number of other buffers appear as one.Drop<T> An interface used byResource
instances to implement their resource disposal mechanics.LeakInfo Information about a resource leak that happened.LeakInfo.TracePoint A moment in the life of the leaked object, for which some information was recorded.MemoryManager The choice ofMemoryManager
implementation also determines the choice ofBuffer
implementation.Owned<T> This interface encapsulates the ownership of aResource
, and exposes a method that may be used to transfer this ownership to the specified recipient thread.ReadableComponent A view onto the buffer component being processed in a given iteration ofBuffer.forEachReadable(int, ReadableComponentProcessor)
.ReadableComponentProcessor<E extends Exception> A processor of readable components.WritableComponent A view onto the buffer component being processed in a given iteration ofBuffer.forEachWritable(int, WritableComponentProcessor)
.WritableComponentProcessor<E extends Exception> A processor of writable components. -
Class Summary Class Description BufferHolder<T extends io.netty5.util.Resource<T>> TheBufferHolder
is an abstract class that simplifies the implementation of objects that themselves contain aBuffer
instance.BufferRef A mutable reference to a buffer.BufferStub A stub of aBuffer
implementation that implements all buffer methods by delegating them to a wrapped buffer instance.DefaultBufferAllocators Accessor for the default, sharedBufferAllocator
instances.LoggingLeakCallback TheLoggingLeakCallback
can be installed to enable logging output when a leak is detected.SensitiveBufferAllocator ThisBufferAllocator
is for allocating off-heapBuffer
s that may contain sensitive information, which should be erased from memory (overwritten) when the buffer is closed. -
Enum Summary Enum Description StandardAllocationTypes Standard implementations ofAllocationType
that all memory managers should support. -
Exception Summary Exception Description BufferClosedException An exception thrown when an operation is attempted on aBuffer
when it has been closed.BufferReadOnlyException