Package net.sf.ehcache.pool
Interface PoolEvictor<T extends PoolParticipant>
-
- Type Parameters:
T- The type of the resources to free space on.
- All Known Implementing Classes:
BalancedAccessEvictor,FromLargestCachePoolEvictor
public interface PoolEvictor<T extends PoolParticipant>PoolEvictors are responsible for finding the best candidates in a collection of resources using a shared resource pool and performing eviction on them.- Author:
- Ludovic Orban, Alex Snaps
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanfreeSpace(java.util.Collection<PoolAccessor<T>> from, long bytes)Free at least N bytes from a collection of resources
-
-
-
Method Detail
-
freeSpace
boolean freeSpace(java.util.Collection<PoolAccessor<T>> from, long bytes)
Free at least N bytes from a collection of resources- 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
-
-