public class GridCacheTtlManager extends GridCacheManagerAdapter
CacheConfiguration.isEagerTtl() flag is set.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasPendingEntries
Indicates that
|
protected long |
nextCleanTime
Timestamp when next clean try will be allowed.
|
cctx, log, starting| Constructor and Description |
|---|
GridCacheTtlManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
eagerTtlEnabled() |
boolean |
expire(int amount)
Processes specified amount of expired entries.
|
boolean |
hasPendingEntries() |
void |
hasPendingEntries(boolean update)
Updates the flag
hasPendingEntries with the given value. |
protected void |
onKernalStop0(boolean cancel) |
long |
pendingSize() |
void |
printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.).
|
protected void |
start0() |
void |
unregister()
Unregister this TTL manager of cache from periodical check on expired entries.
|
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, start, startInfo, stop, stop0, stopInfo, toStringprotected volatile boolean hasPendingEntries
protected volatile long nextCleanTime
protected void start0()
throws IgniteCheckedException
start0 in class GridCacheManagerAdapterIgniteCheckedException - If failed.public boolean eagerTtlEnabled()
True if eager ttl is enabled for cache.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheManagerAdaptercancel - Cancel flag.public void unregister()
public long pendingSize()
throws IgniteCheckedException
IgniteCheckedException - If failed.public void hasPendingEntries(boolean update)
hasPendingEntries with the given value.update - true if the underlying pending tree has entries with expire policy enabled.public boolean hasPendingEntries()
true if the underlying pending tree has entries with expire policy enabled.public void printMemoryStats()
printMemoryStats in interface GridCacheManagerprintMemoryStats in class GridCacheManagerAdapterpublic boolean expire(int amount)
amount - Limit of processed entries by single call, -1 for no limit.True if unprocessed expired entries remains.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020