public void clear() { locks.clear(); entryTaskScheduler.cancelAll(); }
public void clear() { locks.clear(); entryTaskScheduler.cancelAll(); }
void reset() { replicaSyncRequests.clear(); replicaSyncTimeoutScheduler.cancelAll(); // this is not sync with possibly running sync process // permit count can exceed allowed parallelization count. replicaSyncSemaphore.drainPermits(); replicaSyncSemaphore.release(maxParallelReplications); }
void reset() { replicaSyncRequests.clear(); replicaSyncTimeoutScheduler.cancelAll(); // this is not sync with possibly running sync process // permit count can exceed allowed parallelization count. replicaSyncSemaphore.drainPermits(); replicaSyncSemaphore.release(maxParallelReplications); }
@Override public void destroy() { InternalReplicatedMapStorage storage = storageRef.getAndSet(new InternalReplicatedMapStorage<K, V>()); if (storage != null) { storage.clear(); } ttlEvictionScheduler.cancelAll(); }
@Override public void destroy() { InternalReplicatedMapStorage storage = storageRef.getAndSet(new InternalReplicatedMapStorage<K, V>()); if (storage != null) { storage.clear(); } ttlEvictionScheduler.cancelAll(); }
protected InternalReplicatedMapStorage<K, V> clearInternal() { InternalReplicatedMapStorage<K, V> storage = getStorage(); storage.clear(); getStats().incrementOtherOperations(); ttlEvictionScheduler.cancelAll(); return storage; }
protected InternalReplicatedMapStorage<K, V> clearInternal() { InternalReplicatedMapStorage<K, V> storage = getStorage(); storage.clear(); getStats().incrementOtherOperations(); ttlEvictionScheduler.cancelAll(); return storage; }