net.sf.ehcache.pool
Interface PoolEvictor<T>
- Type Parameters:
T
- The type of the resources to free space on.
- All Known Implementing Classes:
- AbstractBalancedAccessEvictor, AbstractFromLargestCachePoolEvictor, BalancedAccessOnDiskPoolEvictor, BalancedAccessOnHeapPoolEvictor, FromLargestCacheOnDiskPoolEvictor, FromLargestCacheOnHeapPoolEvictor
public interface PoolEvictor<T>
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
Method Summary |
boolean |
freeSpace(Collection<T> from,
long bytes)
Free at least N bytes from a collection of resources |
freeSpace
boolean freeSpace(Collection<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 © 2003-2014 Terracotta, Inc.. All Rights Reserved.