use of com.tangosol.net.events.partition.PartitionedServiceDispatcher in project coherence-spring by coherence-community.
the class ServiceEventHandler method isApplicable.
@Override
protected boolean isApplicable(EventDispatcher dispatcher, String scopeName) {
if (dispatcher instanceof PartitionedServiceDispatcher) {
PartitionedServiceDispatcher psd = (PartitionedServiceDispatcher) dispatcher;
ConfigurableCacheFactory ccf = getConfigurableCacheFactory(psd.getService());
if (ccf == null || scopeName == null || scopeName.equals(ccf.getScopeName())) {
return this.serviceName == null || this.serviceName.equals(removeScope(psd.getServiceName()));
}
}
return false;
}
Aggregations