Interface IgniteCacheExpiryPolicy
-
- All Known Implementing Classes:
GridCacheAdapter.CacheExpiryPolicy
public interface IgniteCacheExpiryPolicyWrapper forExpiryPolicyused to track information about cache entries whose time to live was modified after access.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable Map<KeyCacheObject,GridCacheVersion>entries()longforAccess()longforCreate()longforUpdate()@Nullable Map<UUID,Collection<IgniteBiTuple<KeyCacheObject,GridCacheVersion>>>readers()booleanreadyToFlush(int cnt)voidreset()Clears information about updated entries.voidttlUpdated(KeyCacheObject key, GridCacheVersion ver, @Nullable Collection<UUID> rdrs)Callback for ttl update on entry access.
-
-
-
Method Detail
-
forCreate
long forCreate()
- Returns:
- TTL.
-
forUpdate
long forUpdate()
- Returns:
- TTL.
-
forAccess
long forAccess()
- Returns:
- TTL.
-
ttlUpdated
void ttlUpdated(KeyCacheObject key, GridCacheVersion ver, @Nullable @Nullable Collection<UUID> rdrs)
Callback for ttl update on entry access.- Parameters:
key- Entry key.ver- Entry version.rdrs- Entry readers.
-
reset
void reset()
Clears information about updated entries.
-
readyToFlush
boolean readyToFlush(int cnt)
- Parameters:
cnt- Entries count.- Returns:
Trueif number of entries or readers is greater than given number.
-
entries
@Nullable @Nullable Map<KeyCacheObject,GridCacheVersion> entries()
- Returns:
- Entries with TTL updated on access.
-
readers
@Nullable @Nullable Map<UUID,Collection<IgniteBiTuple<KeyCacheObject,GridCacheVersion>>> readers()
- Returns:
- Readers for updated entries.
-
-