protected abstract static class GridCacheAdapter.CacheExpiryPolicy extends Object implements IgniteCacheExpiryPolicy
| Modifier | Constructor and Description |
|---|---|
protected |
GridCacheAdapter.CacheExpiryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Map<Object,IgniteBiTuple<byte[],GridCacheVersion>> |
entries() |
static GridCacheAdapter.CacheExpiryPolicy |
forAccess(long ttl) |
long |
forCreate() |
long |
forUpdate() |
Map<UUID,Collection<IgniteBiTuple<byte[],GridCacheVersion>>> |
readers() |
boolean |
readyToFlush(int cnt) |
void |
reset()
Clears information about updated entries.
|
String |
toString() |
void |
ttlUpdated(Object key,
byte[] keyBytes,
GridCacheVersion ver,
Collection<UUID> rdrs)
Callback for ttl update on entry access.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforAccessprotected GridCacheAdapter.CacheExpiryPolicy()
@Nullable public static GridCacheAdapter.CacheExpiryPolicy forAccess(long ttl)
ttl - Access TTL.public long forCreate()
forCreate in interface IgniteCacheExpiryPolicypublic long forUpdate()
forUpdate in interface IgniteCacheExpiryPolicypublic void reset()
reset in interface IgniteCacheExpiryPolicypublic void ttlUpdated(Object key, byte[] keyBytes, GridCacheVersion ver, @Nullable Collection<UUID> rdrs)
IgniteCacheExpiryPolicyttlUpdated in interface IgniteCacheExpiryPolicykey - Entry key.keyBytes - Entry key bytes.ver - Entry version.rdrs - Entry readers.@Nullable public Map<Object,IgniteBiTuple<byte[],GridCacheVersion>> entries()
entries in interface IgniteCacheExpiryPolicy@Nullable public Map<UUID,Collection<IgniteBiTuple<byte[],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 Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015