use of joynr.exceptions.ApplicationException in project joynr by bmwcarit.
the class LocalDomainAccessControllerImpl method unsubscribeFromAceChanges.
@Override
public void unsubscribeFromAceChanges(String domain, String interfaceName) {
UserDomainInterfaceOperationKey subscriptionKey = new UserDomainInterfaceOperationKey(null, domain, interfaceName, null);
AceSubscription subscriptions = subscriptionsMap.get(subscriptionKey);
if (subscriptions != null) {
try {
globalDomainAccessControllerClient.unsubscribeFromMasterAccessControlEntryChangedBroadcast(subscriptions.getMasterSubscriptionId());
globalDomainAccessControllerClient.unsubscribeFromMediatorAccessControlEntryChangedBroadcast(subscriptions.getMediatorSubscriptionId());
globalDomainAccessControllerClient.unsubscribeFromOwnerAccessControlEntryChangedBroadcast(subscriptions.getOwnerSubscriptionId());
} catch (JoynrRuntimeException | InterruptedException | ApplicationException e) {
LOG.warn("unsubscribe from AceChanges failed due to the following error: {}", e.getMessage());
return;
}
} else {
/*
* This can be the case, when no consumer request has been performed during the lifetime of the provider
*/
LOG.debug("Subscription for ace subscription for interface '{}' domain '{}' not found", interfaceName, domain);
}
}
Aggregations