public void unregisterAllSubscriptionsNotInCollection(Collection<String> theAllIds) { for (String next : new ArrayList<>(myCache.keySet())) { if (!theAllIds.contains(next)) { ourLog.info("Unregistering Subscription/{}", next); remove(next); } } }
public void unregisterSubscription(IIdType theId) { Validate.notNull(theId); String subscriptionId = theId.getIdPart(); myActiveSubscriptionCache.remove(subscriptionId); }