- All Implemented Interfaces:
public class StrictlyBoundedPool
- extends AbstractPool
A pool which strictly obeys to its bound: it will never allow the accessors to consume more bytes than what
has been configured.
- Ludovic Orban, Alex Snaps
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public StrictlyBoundedPool(long maximumPoolSize,
- Create a StrictlyBoundedPool instance
maximumPoolSize - the maximum size of the pool, in bytes.
evictor - the pool evictor, for cross-store eviction.
defaultSizeOfEngine - the default SizeOf engine used by the accessors.
public PoolAccessor createPoolAccessor(PoolParticipant participant,
- Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
participant - the participant which will use the created accessor.
sizeOfEngine - the SizeOf engine used to measure the size of objects added through the created accessor.
- a PoolAccessor whose consumption is tracked by this pool.
Copyright 2001-2015, Terracotta, Inc.