Top Description Methods
io.netty5.buffer.pool

public Interface UntetheredMemory

Known Direct Implementers
io.netty5.buffer.pool.PoolChunk.UntetheredChunkAllocation, io.netty5.buffer.pool.UnpooledUntetheredMemory
Imports
io.netty5.buffer.Buffer, .Drop

Memory that isn't attached to any particular buffer.

Used for transporting the details of a buffer allocation through the layers in PooledBufferAllocator.

Method Summary

Modifier and TypeMethod and Description
public <BufferType extends Buffer> Drop<BufferType>
drop()

Produces the drop instance associated with this piece of untethered memory.

public <Memory> Memory
memory()

Produces the recoverable memory object associated with this piece of untethered memory.

Method Detail

dropback to summary
public <BufferType extends Buffer> Drop<BufferType> drop()

Produces the drop instance associated with this piece of untethered memory.

Implementation Note

This method should only be called once, since it might be expensive, or interact with Cleaners.

memoryback to summary
public <Memory> Memory memory()

Produces the recoverable memory object associated with this piece of untethered memory.

Implementation Note

This method should only be called once, since it might be expensive.