|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.pool.impl.AbstractFromLargestCachePoolEvictor
public abstract class AbstractFromLargestCachePoolEvictor
Abstract pool evictor which always evicts from the store consuming the most resources.
| Constructor Summary | |
|---|---|
AbstractFromLargestCachePoolEvictor()
|
|
| Method Summary | |
|---|---|
protected abstract boolean |
evict(int count,
long bytes,
PoolableStore poolableStore)
Evict from a store for a chosen resource |
boolean |
freeSpace(Collection<PoolableStore> from,
long bytes)
Free at least N bytes from a collection of resources |
protected abstract long |
getSizeInBytes(PoolableStore poolableStore)
Get a store size in bytes for a chosen resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFromLargestCachePoolEvictor()
| Method Detail |
|---|
public boolean freeSpace(Collection<PoolableStore> from,
long bytes)
freeSpace in interface PoolEvictor<PoolableStore>from - a collection of resources to free frombytes - the number of bytes to free up
protected abstract boolean evict(int count,
long bytes,
PoolableStore poolableStore)
count - the element countbytes - the bytes countpoolableStore - the store
protected abstract long getSizeInBytes(PoolableStore poolableStore)
poolableStore - the store
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||