Package net.sf.ehcache.pool.impl
Class FromLargestCachePoolEvictor
- java.lang.Object
-
- net.sf.ehcache.pool.impl.FromLargestCachePoolEvictor
-
- All Implemented Interfaces:
PoolEvictor<PoolParticipant>
public class FromLargestCachePoolEvictor extends java.lang.Object implements PoolEvictor<PoolParticipant>
Abstract pool evictor which always evicts from the store consuming the most resources.- Author:
- Ludovic Orban, Alex Snaps
-
-
Constructor Summary
Constructors Constructor Description FromLargestCachePoolEvictor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfreeSpace(java.util.Collection<PoolAccessor<PoolParticipant>> from, long bytes)Free at least N bytes from a collection of resources
-
-
-
Method Detail
-
freeSpace
public boolean freeSpace(java.util.Collection<PoolAccessor<PoolParticipant>> from, long bytes)
Free at least N bytes from a collection of resources- Specified by:
freeSpacein interfacePoolEvictor<PoolParticipant>- Parameters:
from- a collection of resources to free frombytes- the number of bytes to free up- Returns:
- true if at least N bytes could be freed
-
-