public class BalancedAccessOnHeapPoolEvictor extends AbstractBalancedAccessEvictor<PoolableStore>
Constructor and Description |
---|
BalancedAccessOnHeapPoolEvictor() |
Modifier and Type | Method and Description |
---|---|
protected long |
byteSize(PoolableStore store)
Return the size in bytes of the supplied store.
|
protected long |
countSize(PoolableStore store)
Return the number of mappings in the supplied store.
|
protected boolean |
evict(PoolableStore store,
int count,
long size)
Evict the specified number of bytes or the hinted number of elements from the specified store
|
protected float |
hitRate(PoolableStore store)
Return the hit rate for the supplied store.
|
protected float |
missRate(PoolableStore store)
Return the miss rate for the supplied store.
|
freeSpace
protected boolean evict(PoolableStore store, int count, long size)
evict
in class AbstractBalancedAccessEvictor<PoolableStore>
store
- store to evict fromcount
- number of elements to evictsize
- number of bytes to evicttrue
if the eviction succeededprotected long countSize(PoolableStore store)
countSize
in class AbstractBalancedAccessEvictor<PoolableStore>
store
- store to sizeprotected long byteSize(PoolableStore store)
byteSize
in class AbstractBalancedAccessEvictor<PoolableStore>
store
- store to sizeprotected float hitRate(PoolableStore store)
hitRate
in class AbstractBalancedAccessEvictor<PoolableStore>
store
- store to queryprotected float missRate(PoolableStore store)
missRate
in class AbstractBalancedAccessEvictor<PoolableStore>
store
- store to queryCopyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.