Class ClientEvents
java.lang.Object
org.infinispan.client.hotrod.event.ClientEvents
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addClientQueryListener
(RemoteCache<?, ?> remoteCache, Object listener, Query<?> query) Register a client listener that uses a query DSL based filter.
-
Method Details
-
addClientQueryListener
public static void addClientQueryListener(RemoteCache<?, ?> remoteCache, Object listener, Query<?> query) Register a client listener that uses a query DSL based filter. The listener is expected to be annotated such thatClientListener.useRawData()
= true andClientListener.filterFactoryName()
andClientListener.converterFactoryName()
are equal toFilters.QUERY_DSL_FILTER_FACTORY_NAME
- Parameters:
remoteCache
- the remote cache to attach the listenerlistener
- the listener instancequery
- the query to be used for filtering and conversion (if projections are used)
-