Package com.j_spaces.map.eviction
Class AbstractEvictionStrategy
java.lang.Object
com.j_spaces.map.eviction.AbstractEvictionStrategy
- All Implemented Interfaces:
EvictionStrategy
- Direct Known Subclasses:
FIFOEvictionStrategy,LFUEvictionStrategy,NoneEvictionStrategy,SizeEvictionStrategy
Implements EvictionStrategy and acts as a base for all the eviction strategies
- Since:
- 5.0
- Version:
- 1.0
- Author:
- Guy Korland
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBatchSize(int batchSize) Set the batch size to evict on eachevict()call.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.j_spaces.javax.cache.EvictionStrategy
clear, createEntry, discardEntry, evict, touchEntry
-
Field Details
-
_batchSize
protected int _batchSize
-
-
Constructor Details
-
AbstractEvictionStrategy
public AbstractEvictionStrategy()
-
-
Method Details
-
setBatchSize
public void setBatchSize(int batchSize) Set the batch size to evict on eachevict()call.- Parameters:
batchSize- number of entries to evict.
-