Search in sources :

Example 1 with MapEventFilter

use of com.tangosol.util.filter.MapEventFilter in project Openfire by igniterealtime.

the class ClusterListener method addMapListener.

private void addMapListener(Cache cache, MapListener listener) {
    if (cache instanceof CacheWrapper) {
        Cache wrapped = ((CacheWrapper) cache).getWrappedCache();
        if (wrapped instanceof ClusteredCache) {
            ((ClusteredCache) wrapped).addMapListener(listener, new MapEventFilter(MapEventFilter.E_KEYSET), false);
            // Keep track of the listener that we added to the cache
            mapListeners.put(cache, listener);
        }
    }
}
Also used : CacheWrapper(org.jivesoftware.util.cache.CacheWrapper) MapEventFilter(com.tangosol.util.filter.MapEventFilter) Cache(org.jivesoftware.util.cache.Cache)

Aggregations

MapEventFilter (com.tangosol.util.filter.MapEventFilter)1 Cache (org.jivesoftware.util.cache.Cache)1 CacheWrapper (org.jivesoftware.util.cache.CacheWrapper)1