public class StrictlyBoundedPool extends AbstractPool
Constructor and Description |
---|
StrictlyBoundedPool(long maximumPoolSize,
PoolEvictor evictor,
SizeOfEngine defaultSizeOfEngine)
Create a StrictlyBoundedPool instance
|
Modifier and Type | Method and Description |
---|---|
PoolAccessor |
createPoolAccessor(PoolParticipant participant,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
|
createPoolAccessor, getEvictor, getMaxSize, getPoolAccessors, getSize, registerPoolAccessor, removePoolAccessor, setMaxSize
public StrictlyBoundedPool(long maximumPoolSize, PoolEvictor 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(PoolParticipant participant, SizeOfEngine sizeOfEngine)
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.Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.