Top Description Methods
net.sf.ehcache.pool

public Interface PoolEvictor<T extends net.sf.ehcache.pool.PoolParticipant>

Known Direct Implementers
net.sf.ehcache.pool.impl.BalancedAccessEvictor, net.sf.ehcache.pool.impl.FromLargestCachePoolEvictor
Type Parameters
<T>
The type of the resources to free space on.
Imports
java.util.Collection

PoolEvictors are responsible for finding the best candidates in a collection of resources using a shared resource pool and performing eviction on them.
Authors
Ludovic Orban, Alex Snaps

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if at least N bytes could be freed
freeSpace
(Collection<PoolAccessor<T>>
a collection of resources to free from
from
,
long
the number of bytes to free up
bytes
)

Free at least N bytes from a collection of resources

Method Detail

freeSpaceback to summary
public boolean freeSpace(Collection<PoolAccessor<T>> from, long bytes)

Free at least N bytes from a collection of resources

Parameters
from:Collection<PoolAccessor<T>>

a collection of resources to free from

bytes:long

the number of bytes to free up

Returns:boolean

true if at least N bytes could be freed