Package io.servicetalk.buffer.api
Class ReadOnlyBufferAllocators
java.lang.Object
io.servicetalk.buffer.api.ReadOnlyBufferAllocators
Utility class containing
BufferAllocators that create Buffer instances which cannot be modified and
are read only.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BufferAllocatorDefaultBufferAllocatorthat createsBufferinstances which cannot be modified and are read only.static final BufferAllocatorBufferAllocatorthat createsBufferinstances which prefer off-heap allocations when otherwise unspecified which cannot be modified and are read only.static final BufferAllocatorBufferAllocatorthat createsBufferinstances which prefer heap allocations when otherwise unspecified which cannot be modified and are read only. -
Method Summary
-
Field Details
-
DEFAULT_RO_ALLOCATOR
DefaultBufferAllocatorthat createsBufferinstances which cannot be modified and are read only. -
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
BufferAllocatorthat createsBufferinstances which prefer off-heap allocations when otherwise unspecified which cannot be modified and are read only.
-