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();
}
Aggregations