Search in sources :

Example 1 with AbstractCacheService

use of com.hazelcast.cache.impl.AbstractCacheService in project hazelcast by hazelcast.

the class CacheListenerRegistrationOperation method run.

@Override
public void run() throws Exception {
    final AbstractCacheService service = getService();
    CacheConfig cacheConfig = service.getCacheConfig(name);
    if (register) {
        service.cacheEntryListenerRegistered(name, cacheEntryListenerConfiguration);
    } else if (cacheConfig != null) {
        service.cacheEntryListenerDeregistered(name, cacheEntryListenerConfiguration);
    }
}
Also used : CacheConfig(com.hazelcast.config.CacheConfig) AbstractCacheService(com.hazelcast.cache.impl.AbstractCacheService)

Aggregations

AbstractCacheService (com.hazelcast.cache.impl.AbstractCacheService)1 CacheConfig (com.hazelcast.config.CacheConfig)1