Top Description Constructors Methods
net.sf.ehcache.pool.impl

public Class FromLargestCachePoolEvictor

extends Object
implements PoolEvictor<PoolParticipant>
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.pool.PoolEvictor
Imports
net.sf.ehcache.pool.PoolAccessor, .PoolEvictor, .PoolParticipant, java.util.ArrayList, .Collection

Abstract pool evictor which always evicts from the store consuming the most resources.
Authors
Ludovic Orban, Alex Snaps

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
private PoolAccessor<PoolParticipant>
public boolean
freeSpace(Collection<PoolAccessor<PoolParticipant>>
a collection of resources to free from
from
,
long
the number of bytes to free up
bytes
)

Implements net.sf.ehcache.pool.PoolEvictor.freeSpace.

Free at least N bytes from a collection of resources
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FromLargestCachePoolEvictorback to summary
public FromLargestCachePoolEvictor()

Method Detail

alreadyTriedback to summary
private boolean alreadyTried(Collection<PoolAccessor<PoolParticipant>> tried, PoolAccessor<PoolParticipant> from)
findUntriedLargestPoolableStoreback to summary
private PoolAccessor<PoolParticipant> findUntriedLargestPoolableStore(Collection<PoolAccessor<PoolParticipant>> from, Collection<PoolAccessor<PoolParticipant>> tried)
freeSpaceback to summary
public boolean freeSpace(Collection<PoolAccessor<PoolParticipant>> from, long bytes)

Implements net.sf.ehcache.pool.PoolEvictor.freeSpace.

Doc from net.sf.ehcache.pool.PoolEvictor.freeSpace.

Free at least N bytes from a collection of resources

Parameters
from:Collection<PoolAccessor<PoolParticipant>>

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