Search in sources :

Example 1 with ClientQueryCacheEventService

use of com.hazelcast.client.map.impl.querycache.subscriber.ClientQueryCacheEventService in project hazelcast by hazelcast.

the class ClientQueryCacheMemoryLeakTest method hasAnyListenerRegistered.

private static boolean hasAnyListenerRegistered(QueryCacheEventService eventService, String mapName) {
    ConcurrentMap<String, QueryCacheToListenerMapper> registrations = ((ClientQueryCacheEventService) eventService).getRegistrations();
    QueryCacheToListenerMapper queryCacheToListenerMapper = registrations.get(mapName);
    return queryCacheToListenerMapper != null && queryCacheToListenerMapper.hasAnyQueryCacheRegistered();
}
Also used : QueryCacheToListenerMapper(com.hazelcast.client.map.impl.querycache.subscriber.QueryCacheToListenerMapper) ClientQueryCacheEventService(com.hazelcast.client.map.impl.querycache.subscriber.ClientQueryCacheEventService)

Aggregations

ClientQueryCacheEventService (com.hazelcast.client.map.impl.querycache.subscriber.ClientQueryCacheEventService)1 QueryCacheToListenerMapper (com.hazelcast.client.map.impl.querycache.subscriber.QueryCacheToListenerMapper)1