Class GridCacheSharedTtlCleanupManager
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter
-
- org.apache.ignite.internal.processors.cache.GridCacheSharedTtlCleanupManager
-
- All Implemented Interfaces:
GridCacheSharedManager
public class GridCacheSharedTtlCleanupManager extends GridCacheSharedManagerAdapter
Periodically removes expired entities from caches withCacheConfiguration.isEagerTtl()flag set.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter
cctx, diagnosticLog, log
-
-
Constructor Summary
Constructors Constructor Description GridCacheSharedTtlCleanupManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaneagerTtlEnabled()protected voidonKernalStop0(boolean cancel)voidregister(GridCacheTtlManager mgr)Register ttl manager of cache for periodical check on expired entries.voidunregister(GridCacheTtlManager mgr)Unregister ttl manager of cache from periodical check on expired entries.-
Methods inherited from class org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter
context, isStopping, kernalStartInfo, kernalStopInfo, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, onReconnected, printMemoryStats, start, start0, startInfo, stop, stop0, stopInfo, toString
-
-
-
-
Method Detail
-
onKernalStop0
protected void onKernalStop0(boolean cancel)
- Overrides:
onKernalStop0in classGridCacheSharedManagerAdapter- Parameters:
cancel- Cancel flag.
-
register
public void register(GridCacheTtlManager mgr)
Register ttl manager of cache for periodical check on expired entries.- Parameters:
mgr- ttl manager of cache.
-
unregister
public void unregister(GridCacheTtlManager mgr)
Unregister ttl manager of cache from periodical check on expired entries.- Parameters:
mgr- ttl manager of cache.
-
eagerTtlEnabled
public boolean eagerTtlEnabled()
- Returns:
Trueif eager TTL is enabled.
-
-