ehcache

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
 boolean freeSpace(Collection<PoolAccessor<T>> from, long bytes)
          Free at least N bytes from a collection of resources
 

Method Detail

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 from
bytes - the number of bytes to free up
Returns:
true if at least N bytes could be freed

ehcache

Copyright 2001-2015, Terracotta, Inc.