/** used by tests */ public void clearUnsafe() { lock.writeLock().lock(); try { bootstrapTokens.clear(); tokenToEndpointMap.clear(); topology.clear(); leavingEndpoints.clear(); pendingRanges.clear(); endpointToHostIdMap.clear(); invalidateCachedRings(); } finally { lock.writeLock().unlock(); } }
public void clear() { objectsToCommitFirst.clear(); objectsToCommitSecond.clear(); }
/** used by tests */ public void clearUnsafe() { bootstrapTokens.clear(); tokenToEndPointMap.clear(); leavingEndPoints.clear(); pendingRanges.clear(); }
public void handleShutdown() { players.clear(); uuidMap.clear(); uuidWrapper = null; }