net.sf.ehcache.pool.impl
Class BalancedAccessEvictor
java.lang.Object
net.sf.ehcache.pool.impl.BalancedAccessEvictor
- All Implemented Interfaces:
- PoolEvictor<PoolParticipant>
public class BalancedAccessEvictor
- extends Object
- implements PoolEvictor<PoolParticipant>
Abstract implementation of a global 'cache value' maximizing pool eviction algorithm.
- Author:
- Chris Dennis, Alex Snaps
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BalancedAccessEvictor
public BalancedAccessEvictor()
freeSpace
public boolean freeSpace(Collection<PoolAccessor<PoolParticipant>> from,
long bytes)
- Free at least N bytes from a collection of resources
- Specified by:
freeSpace
in interface PoolEvictor<PoolParticipant>
- 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-2017, Terracotta, Inc.