org.terracotta.offheapstore.buffersource
Class TimingBufferSource
java.lang.Object
org.terracotta.offheapstore.buffersource.TimingBufferSource
- All Implemented Interfaces:
- BufferSource
public class TimingBufferSource
- extends Object
- implements BufferSource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimingBufferSource
public TimingBufferSource(BufferSource source,
long slow,
TimeUnit slowUnit,
long critical,
TimeUnit criticalUnit,
boolean haltOnCritical)
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
Copyright © 2016. All rights reserved.