- All Implemented Interfaces:
public class BoundedPool
- extends AbstractPool<PoolableStore>
A pool which loosely obeys to its bound: it can allow the accessors to consume more bytes than what
has been configured if that helps concurrency.
- Ludovic Orban, Chris Dennis
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BoundedPool(long maximumPoolSize,
- Create a BoundedPool 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(PoolableStore store,
- Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
store - the store 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 © 2003-2012 Terracotta, Inc.. All Rights Reserved.