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
freeSpace
boolean freeSpace(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
Copyright 2001-2016, Terracotta, Inc.