Top Description Fields Constructors Methods
io.netty5.buffer

public final Enum StandardAllocationTypes

extends Enum<StandardAllocationTypes>
implements AllocationType
Class Inheritance
All Implemented Interfaces
io.netty5.buffer.AllocationType

Standard implementations of AllocationType that all memory managers should support.

Field Summary

Modifier and TypeField and Description
public static final StandardAllocationTypes
OFF_HEAP

The allocation should use native (non-heap) memory.

public static final StandardAllocationTypes
ON_HEAP

The allocation should use Java heap memory.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public static StandardAllocationTypes
public static StandardAllocationTypes[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

OFF_HEAPback to summary
public static final StandardAllocationTypes OFF_HEAP

The allocation should use native (non-heap) memory.

ON_HEAPback to summary
public static final StandardAllocationTypes ON_HEAP

The allocation should use Java heap memory.

Constructor Detail

StandardAllocationTypesback to summary
private StandardAllocationTypes()

Method Detail

isDirectback to summary
public boolean isDirect()

Implements io.netty5.buffer.AllocationType.isDirect.

Returns:boolean

Doc from io.netty5.buffer.AllocationType.isDirect.

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

Annotations
@Override
valueOfback to summary
public static StandardAllocationTypes valueOf(String name)
valuesback to summary
public static StandardAllocationTypes[] values()