com.j_spaces.map.eviction
Class AbstractEvictionStrategy

java.lang.Object
  extended by com.j_spaces.map.eviction.AbstractEvictionStrategy
All Implemented Interfaces:
EvictionStrategy
Direct Known Subclasses:
FIFOEvictionStrategy, LFUEvictionStrategy, NoneEvictionStrategy, SizeEvictionStrategy

public abstract class AbstractEvictionStrategy
extends Object
implements EvictionStrategy

Implements EvictionStrategy and acts as a base for all the eviction strategies

Since:
5.0

Constructor Summary
AbstractEvictionStrategy()
           
 
Method Summary
 void setBatchSize(int batchSize)
          Set the batch size to evict on each evict() call.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.j_spaces.javax.cache.EvictionStrategy
clear, createEntry, discardEntry, evict, touchEntry
 

Constructor Detail

AbstractEvictionStrategy

public AbstractEvictionStrategy()
Method Detail

setBatchSize

public void setBatchSize(int batchSize)
Set the batch size to evict on each evict() call.

Parameters:
batchSize - number of entries to evict.