public class ConcurrentLruSpaceEvictionStrategy extends SpaceEvictionStrategy
| Constructor and Description | 
|---|
ConcurrentLruSpaceEvictionStrategy(int touchThreshold,
                                  int maxCacheSize)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
evict(int numOfEntries)
Called when the space requires entries to be evicted. 
 | 
void | 
onInsert(EvictableServerEntry entry)
Called when a new entry is written to the space. 
 | 
void | 
onLoad(EvictableServerEntry entry)
Called when an entry is loaded into the space from an external data source. 
 | 
void | 
onRead(EvictableServerEntry entry)
Called when an entry is read from the space. 
 | 
void | 
onRemove(EvictableServerEntry entry)
Called when an entry is removed from the space. 
 | 
void | 
onUpdate(EvictableServerEntry entry)
Called when an entry is updated in the space. 
 | 
boolean | 
requiresConcurrencyProtection()
Determines whether this eviction strategy implementation requires concurrency protection from
 the space. 
 | 
close, getEvictionConfig, getEvictionManager, initialize, isClosedpublic ConcurrentLruSpaceEvictionStrategy(int touchThreshold,
                                          int maxCacheSize)
public boolean requiresConcurrencyProtection()
requiresConcurrencyProtection in class SpaceEvictionStrategypublic void onInsert(EvictableServerEntry entry)
SpaceEvictionStrategyonInsert in class SpaceEvictionStrategyentry - The new entrypublic void onLoad(EvictableServerEntry entry)
SpaceEvictionStrategyonLoad in class SpaceEvictionStrategyentry - The loaded entrypublic void onRead(EvictableServerEntry entry)
SpaceEvictionStrategyonRead in class SpaceEvictionStrategyentry - The read entrypublic void onUpdate(EvictableServerEntry entry)
SpaceEvictionStrategyonUpdate in class SpaceEvictionStrategyentry - The updated entrypublic void onRemove(EvictableServerEntry entry)
SpaceEvictionStrategyonRemove in class SpaceEvictionStrategyentry - The removed entrypublic int evict(int numOfEntries)
SpaceEvictionStrategyevict in class SpaceEvictionStrategynumOfEntries - Number of entries to be evictedCopyright © GigaSpaces.