Class HeapBufferSource
- java.lang.Object
-
- org.terracotta.offheapstore.buffersource.HeapBufferSource
-
- All Implemented Interfaces:
BufferSource
public class HeapBufferSource extends java.lang.Object implements BufferSource
-
-
Constructor Summary
Constructors Constructor Description HeapBufferSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBufferallocateBuffer(int size)Allocates a buffer of the given size.java.lang.StringtoString()
-
-
-
Method Detail
-
allocateBuffer
public java.nio.ByteBuffer allocateBuffer(int size)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-