protected abstract static class GridCacheAdapter.CacheExpiryPolicy extends Object implements IgniteCacheExpiryPolicy
Modifier | Constructor and Description |
---|---|
protected |
GridCacheAdapter.CacheExpiryPolicy() |
Modifier and Type | Method and Description |
---|---|
Map<KeyCacheObject,GridCacheVersion> |
entries() |
static GridCacheAdapter.CacheExpiryPolicy |
fromRemote(long createTtl,
long accessTtl) |
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,
Collection<UUID> rdrs)
Callback for ttl update on entry access.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forAccess, forCreate, forUpdate
protected GridCacheAdapter.CacheExpiryPolicy()
@Nullable public static GridCacheAdapter.CacheExpiryPolicy fromRemote(long createTtl, long accessTtl)
createTtl
- Create TTL.accessTtl
- Access TTL.public void reset()
reset
in interface IgniteCacheExpiryPolicy
public void ttlUpdated(KeyCacheObject key, GridCacheVersion ver, @Nullable Collection<UUID> rdrs)
IgniteCacheExpiryPolicy
ttlUpdated
in interface IgniteCacheExpiryPolicy
key
- Entry key.ver
- Entry version.rdrs
- Entry readers.@Nullable public Map<KeyCacheObject,GridCacheVersion> entries()
entries
in interface IgniteCacheExpiryPolicy
@Nullable public Map<UUID,Collection<IgniteBiTuple<KeyCacheObject,GridCacheVersion>>> readers()
readers
in interface IgniteCacheExpiryPolicy
public boolean readyToFlush(int cnt)
readyToFlush
in interface IgniteCacheExpiryPolicy
cnt
- Entries count.True
if number of entries or readers is greater than given number.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017