use of org.infinispan.notifications.cachelistener.cluster.ClusterListenerRemoveCallable in project infinispan by infinispan.
the class CacheNotifierImpl method removeListenerAsync.
@Override
public CompletionStage<Void> removeListenerAsync(Object listener) {
removeListenerFromMaps(listener);
UUID id = clusterListenerIDs.remove(listener);
if (id != null) {
return clusterExecutor.submitConsumer(new ClusterListenerRemoveCallable(cache.wired().getName(), id), (a, ignore, t) -> {
if (t != null) {
throw new CacheException(t);
}
});
}
return CompletableFutures.completedNull();
}
Aggregations