/** {@inheritDoc} */ @Override protected void onKernalStop0(boolean cancel) { if (pendingEntries != null) pendingEntries.clear(); cctx.shared().ttl().unregister(this); }
/** {@inheritDoc} */ @Override protected void start0() throws IgniteCheckedException { dhtCtx = cctx.isNear() ? cctx.near().dht().context() : cctx; boolean cleanupDisabled = cctx.kernalContext().isDaemon() || !cctx.config().isEagerTtl() || CU.isUtilityCache(cctx.name()) || cctx.dataStructuresCache() || (cctx.kernalContext().clientNode() && cctx.config().getNearConfiguration() == null); if (cleanupDisabled) return; eagerTtlEnabled = true; cctx.shared().ttl().register(this); pendingEntries = (!cctx.isLocal() && cctx.config().getNearConfiguration() != null) ? new GridConcurrentSkipListSetEx() : null; }
/** {@inheritDoc} */ @Override protected void onKernalStop0(boolean cancel) { if (pendingEntries != null) pendingEntries.clear(); cctx.shared().ttl().unregister(this); }
/** {@inheritDoc} */ @Override protected void start0() throws IgniteCheckedException { dhtCtx = cctx.isNear() ? cctx.near().dht().context() : cctx; boolean cleanupDisabled = cctx.kernalContext().isDaemon() || !cctx.config().isEagerTtl() || CU.isUtilityCache(cctx.name()) || cctx.dataStructuresCache() || (cctx.kernalContext().clientNode() && cctx.config().getNearConfiguration() == null); if (cleanupDisabled) return; eagerTtlEnabled = true; cctx.shared().ttl().register(this); pendingEntries = (!cctx.isLocal() && cctx.config().getNearConfiguration() != null) ? new GridConcurrentSkipListSetEx() : null; }