protected abstract static class GridCacheAdapter.CacheExpiryPolicy extends Object implements IgniteCacheExpiryPolicy
| Modifier | Constructor and Description |
|---|---|
protected |
CacheExpiryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable Map<KeyCacheObject,GridCacheVersion> |
entries() |
static @Nullable GridCacheAdapter.CacheExpiryPolicy |
fromRemote(long createTtl,
long accessTtl) |
@Nullable Map<UUID,Collection<IgniteBiTuple<KeyCacheObject,GridCacheVersion>>> |
readers() |
boolean |
readyToFlush(int cnt) |
void |
reset()
Clears information about updated entries.
|
String |
toString() |
void |
ttlUpdated(KeyCacheObject key,
GridCacheVersion ver,
@Nullable Collection<UUID> rdrs)
Callback for ttl update on entry access.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforAccess, forCreate, forUpdate@Nullable public static @Nullable GridCacheAdapter.CacheExpiryPolicy fromRemote(long createTtl, long accessTtl)
createTtl - Create TTL.accessTtl - Access TTL.public void reset()
reset in interface IgniteCacheExpiryPolicypublic void ttlUpdated(KeyCacheObject key, GridCacheVersion ver, @Nullable @Nullable Collection<UUID> rdrs)
IgniteCacheExpiryPolicyttlUpdated in interface IgniteCacheExpiryPolicykey - Entry key.ver - Entry version.rdrs - Entry readers.@Nullable public @Nullable Map<KeyCacheObject,GridCacheVersion> entries()
entries in interface IgniteCacheExpiryPolicy@Nullable public @Nullable Map<UUID,Collection<IgniteBiTuple<KeyCacheObject,GridCacheVersion>>> readers()
readers in interface IgniteCacheExpiryPolicypublic boolean readyToFlush(int cnt)
readyToFlush in interface IgniteCacheExpiryPolicycnt - Entries count.True if number of entries or readers is greater than given number.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023