public void clearAll() { roleToUsersMappings.clear(); }
public QueryMetric setTags(Map<String, String> tags) { this.tags.clear(); for (String s : tags.keySet()) { this.tags.put(s, tags.get(s)); } return this; }
public void shutdown() throws InterruptedException { mutex.lock(); try { stopped = true; tree.clear(); watchers.clear(); executor.shutdownNow(); } finally { mutex.unlock(); } }
private void sendDirtyEntities(NetData.NetMessage.Builder message) { TIntIterator dirtyIterator = netDirty.iterator(); while (dirtyIterator.hasNext()) { int netId = dirtyIterator.next(); EntityRef entity = networkSystem.getEntity(netId); if (!entity.exists()) { logger.error("Sending non-existent entity update for netId {}", netId); } boolean isOwner = networkSystem.getOwner(entity) == this; EntityData.PackedEntity entityData = entitySerializer.serialize(entity, addedComponents.get(netId), dirtyComponents.get(netId), removedComponents.get(netId), new ServerComponentFieldCheck(isOwner, false)); if (entityData != null) { message.addUpdateEntity(NetData.UpdateEntityMessage.newBuilder().setEntity(entityData).setNetId(netId)); } } netDirty.clear(); addedComponents.clear(); removedComponents.clear(); dirtyComponents.clear(); }
biomeManager = null; ownerLookup.clear(); ownedLookup.clear(); ownershipHelper = null; storageManager = null;
private synchronized void cleanUpTask() { checkState(getTaskStatus().getState().isDone(), "attempt to clean up a task that is not done yet"); // clear pending splits to free memory pendingSplits.clear(); pendingSourceSplitCount = 0; partitionedSplitCountTracker.setPartitionedSplitCount(getPartitionedSplitCount()); splitQueueHasSpace = true; whenSplitQueueHasSpace.complete(null, executor); // cancel pending request if (currentRequest != null) { currentRequest.cancel(true); currentRequest = null; currentRequestStartNanos = 0; } taskStatusFetcher.stop(); // The remote task is likely to get a delete from the PageBufferClient first. // We send an additional delete anyway to get the final TaskInfo HttpUriBuilder uriBuilder = getHttpUriBuilder(getTaskStatus()); Request request = prepareDelete() .setUri(uriBuilder.build()) .build(); scheduleAsyncCleanupRequest(createCleanupBackoff(), request, "cleanup"); }
initTree2PrevFieldInit.clear(); class2Entities.clear(); class2ConstructorUninit.clear(); computedNullnessMap.clear(); EnclosingEnvironmentNullness.instance(state.context).clear();
inflightTakes.clear(); count += uncommittedTakes; int pendingTakesSize = pendingTakes.size();
inflightTakes.clear(); count += uncommittedTakes; int pendingTakesSize = pendingTakes.size();
private void flushRowBuffer() { entries.putAll(rowBuffer); rowBuffer.clear(); }
void unregisterAll() { synchronized(this.lock) { this.subscribers.clear(); this.cache.invalidateAll(); } }
/** * Closes this deployer. */ public void close() { for (Set<MicroserviceRegistration> registrations : microserviceRegistrations.values()) { registrations.forEach(MicroserviceRegistration::unregister); registrations.clear(); } microserviceRegistrations.clear(); restApiProviders.clear(); }
@Override public synchronized void close() throws Exception { Iterator<ScheduledFuture<?>> tasksIterator = collectStatsTasks.iterator(); while (tasksIterator.hasNext()) { ScheduledFuture<?> scheduledFuture = tasksIterator.next(); scheduledFuture.cancel(false); tasksIterator.remove(); } epgsByContractId.clear(); }
@Override public void clear() { super.clear(); menuLabelMap.clear(); menuItemContextMenus.clear(); this.navbarNav.add(listDropDown); }
@Override public void clear() { super.clear(); menuLabelMap.clear(); menuItemContextMenus.clear(); this.navbarNav.add(listDropDown); }
public void unsubscribeAll() { Collection<SubscriptionHandle> subscriptionsSnapshot; synchronized (subscriptions) { subscriptionsSnapshot = ImmutableList.copyOf(subscriptions.values()); subscriptions.clear(); } for (SubscriptionHandle s: subscriptionsSnapshot) { context.unsubscribe(s); } } }
@Override protected void preStop() { super.preStop(); for (Map.Entry<ObjectName, NotificationListener> entry : notificationListeners.entries()) { unregisterNotificationListener(entry.getKey(), entry.getValue()); } notificationListeners.clear(); }
/** Clear the registry. * * MUST be used by a single test only. * TestNG interleaves the tests (sequentially) which results in tearDown * executing in the middle of another class' tests. Only one tearDown may * call this method. **/ public static void clearRegistry() { RendererHints.getRegistry().clear(); } }
@Override public void clearContextMenu() { super.clearContextMenu(); for (final ComplexPanel contextContainer : menuItemContextMenus.values()) { contextContainer.clear(); contextContainer.removeFromParent(); } menuItemContextMenus.clear(); }