public class StrictlyBoundedPool extends AbstractPool<PoolableStore>
Constructor and Description |
---|
StrictlyBoundedPool(long maximumPoolSize,
PoolEvictor<PoolableStore> evictor,
SizeOfEngine defaultSizeOfEngine)
Create a StrictlyBoundedPool 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, setMaxSize
public StrictlyBoundedPool(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-2013 Terracotta, Inc.. All Rights Reserved.