|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.pool.impl.AbstractBalancedAccessEvictor<PoolableStore>
net.sf.ehcache.pool.impl.BalancedAccessOnHeapPoolEvictor
public class BalancedAccessOnHeapPoolEvictor
Balanced access evictor that makes on-heap eviction decisions.
| Constructor Summary | |
|---|---|
BalancedAccessOnHeapPoolEvictor()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.sf.ehcache.pool.impl.AbstractBalancedAccessEvictor |
|---|
freeSpace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BalancedAccessOnHeapPoolEvictor()
| Method Detail |
|---|
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 evict
true if the eviction succeededprotected long countSize(PoolableStore store)
countSize in class AbstractBalancedAccessEvictor<PoolableStore>store - store to size
protected long byteSize(PoolableStore store)
byteSize in class AbstractBalancedAccessEvictor<PoolableStore>store - store to size
protected float hitRate(PoolableStore store)
hitRate in class AbstractBalancedAccessEvictor<PoolableStore>store - store to query
protected float missRate(PoolableStore store)
missRate in class AbstractBalancedAccessEvictor<PoolableStore>store - store to query
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||