public class BoundedPool extends AbstractPool<PoolableStore>
| Constructor and Description |
|---|
BoundedPool(long maximumPoolSize,
PoolEvictor<PoolableStore> evictor,
SizeOfEngine defaultSizeOfEngine)
Create a BoundedPool instance
|
| Modifier and Type | Method and Description |
|---|---|
PoolAccessor |
createPoolAccessor(PoolableStore store,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
|
createPoolAccessor, getEvictor, getMaxSize, getPoolableStores, getSize, registerPoolAccessor, removePoolAccessor, setMaxSizepublic BoundedPool(long maximumPoolSize,
PoolEvictor<PoolableStore> evictor,
SizeOfEngine defaultSizeOfEngine)
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, SizeOfEngine sizeOfEngine)
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.Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.