Top Description Methods
io.netty5.buffer

public Interface AllocationType

Known Direct Implementers
io.netty5.buffer.StandardAllocationTypes, io.netty5.buffer.internal.WrappingAllocation

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.

Standard implementations of this interface can be found in StandardAllocationTypes.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this allocation type produces off-heap, or direct buffers. Otherwise false, if the buffers are on-heap.
isDirect
()

Method Detail

isDirectback to summary
public boolean isDirect()
Returns:boolean

true if this allocation type produces off-heap, or direct buffers. Otherwise false, if the buffers are on-heap.