public abstract class TimeBasedSpaceEvictionStrategy extends SpaceEvictionStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeBasedSpaceEvictionStrategy.TimeBasedEvictionPayload |
| Constructor and Description |
|---|
TimeBasedSpaceEvictionStrategy(long inCacheTimeInterval,
long inCacheReinsertedTimeInterval,
long harvestMainInterval,
long harvestShortLivedInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when the space is closed.
|
int |
evict(int numOfEntries)
Called when the space requires entries to be evicted.
|
void |
initialize(SpaceEvictionManager evictionManager,
SpaceEvictionStrategyConfig config)
Called during the space initialization.
|
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 |
onRemove(EvictableServerEntry entry)
Called when an entry is removed from the space.
|
getEvictionConfig, getEvictionManager, isClosed, onRead, onUpdate, requiresConcurrencyProtectionpublic TimeBasedSpaceEvictionStrategy(long inCacheTimeInterval,
long inCacheReinsertedTimeInterval,
long harvestMainInterval,
long harvestShortLivedInterval)
public void initialize(SpaceEvictionManager evictionManager, SpaceEvictionStrategyConfig config)
SpaceEvictionStrategyinitialize in class SpaceEvictionStrategypublic void close()
SpaceEvictionStrategyclose 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 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.