Package io.servicetalk.buffer.api
Class ReadOnlyBufferAllocators
- java.lang.Object
-
- io.servicetalk.buffer.api.ReadOnlyBufferAllocators
-
public final class ReadOnlyBufferAllocators extends java.lang.ObjectUtility class containingBufferAllocators that createBufferinstances which cannot be modified and are read only.
-
-
Field Summary
Fields Modifier and Type Field Description static BufferAllocatorDEFAULT_RO_ALLOCATORDefaultBufferAllocatorthat createsBufferinstances which cannot be modified and are read only.static BufferAllocatorPREFER_DIRECT_RO_ALLOCATORBufferAllocatorthat createsBufferinstances which prefer off-heap allocations when otherwise unspecified which cannot be modified and are read only.static BufferAllocatorPREFER_HEAP_RO_ALLOCATORBufferAllocatorthat createsBufferinstances which prefer heap allocations when otherwise unspecified which cannot be modified and are read only.
-
-
-
Field Detail
-
DEFAULT_RO_ALLOCATOR
public static final BufferAllocator DEFAULT_RO_ALLOCATOR
DefaultBufferAllocatorthat createsBufferinstances which cannot be modified and are read only.
-
PREFER_HEAP_RO_ALLOCATOR
public static final BufferAllocator PREFER_HEAP_RO_ALLOCATOR
BufferAllocatorthat createsBufferinstances which prefer heap allocations when otherwise unspecified which cannot be modified and are read only.
-
PREFER_DIRECT_RO_ALLOCATOR
public static final BufferAllocator PREFER_DIRECT_RO_ALLOCATOR
BufferAllocatorthat createsBufferinstances which prefer off-heap allocations when otherwise unspecified which cannot be modified and are read only.
-
-