org.terracotta.offheapstore.buffersource
Class HeapBufferSource
java.lang.Object
org.terracotta.offheapstore.buffersource.HeapBufferSource
- All Implemented Interfaces:
- BufferSource
public class HeapBufferSource
- extends Object
- implements BufferSource
- Author:
- cdennis
HeapBufferSource
public HeapBufferSource()
allocateBuffer
public ByteBuffer allocateBuffer(int size)
- Description copied from interface:
BufferSource
- Allocates a buffer of the given size.
If a suitable buffer cannot be allocated then null should be
returned. Implementations may place restrictions on the valid size value
they will accept.
- Specified by:
allocateBuffer in interface BufferSource
- Parameters:
size - required buffer size
- Returns:
- a buffer of the required size
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2015. All Rights Reserved.