Search in sources :

Example 1 with PartitionedServiceDispatcher

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;
}
Also used : PartitionedServiceDispatcher(com.tangosol.net.events.partition.PartitionedServiceDispatcher) ConfigurableCacheFactory(com.tangosol.net.ConfigurableCacheFactory)

Aggregations

ConfigurableCacheFactory (com.tangosol.net.ConfigurableCacheFactory)1 PartitionedServiceDispatcher (com.tangosol.net.events.partition.PartitionedServiceDispatcher)1