Class OffHeapBufferSource
java.lang.Object
org.terracotta.offheapstore.buffersource.OffHeapBufferSource
- All Implemented Interfaces:
BufferSource
An unlimited direct byte buffer source.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocateBuffer(int size) Allocates a buffer of the given size.toString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
OffHeapBufferSource
public OffHeapBufferSource()
-
-
Method Details
-
allocateBuffer
Description copied from interface:BufferSourceAllocates a buffer of the given size.If a suitable buffer cannot be allocated then
nullshould be returned. Implementations may place restrictions on the valid size value they will accept.- Specified by:
allocateBufferin interfaceBufferSource- Parameters:
size- required buffer size- Returns:
- a buffer of the required size
-
toString
-