public class ClientEvents extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTINUOUS_QUERY_FILTER_FACTORY_NAME |
static String |
QUERY_DSL_FILTER_FACTORY_NAME
The name of the factory used for query DSL based filters and converters.
|
Modifier and Type | Method and Description |
---|---|
static void |
addClientQueryListener(RemoteCache<?,?> remoteCache,
Object listener,
org.infinispan.query.dsl.Query query)
Register a client listener that uses a query DSL based filter.
|
static Object |
addContinuousQueryListener(RemoteCache<?,?> remoteCache,
ContinuousQueryListener queryListener,
org.infinispan.query.dsl.Query query)
Registers a continuous query listener that uses a query DSL based filter.
|
static ClientCacheFailoverEvent |
mkCachefailoverEvent() |
public static final String QUERY_DSL_FILTER_FACTORY_NAME
public static final String CONTINUOUS_QUERY_FILTER_FACTORY_NAME
public static ClientCacheFailoverEvent mkCachefailoverEvent()
public static void addClientQueryListener(RemoteCache<?,?> remoteCache, Object listener, org.infinispan.query.dsl.Query query)
ClientListener.useRawData()
= true and ClientListener.filterFactoryName()
and ClientListener.converterFactoryName()
are equal to ClientEvents.QUERY_DSL_FILTER_FACTORY_NAME
remoteCache
- the remote cache to attach the listenerlistener
- the listener instancequery
- the query to be used for filtering and conversion (if projections are used)public static Object addContinuousQueryListener(RemoteCache<?,?> remoteCache, ContinuousQueryListener queryListener, org.infinispan.query.dsl.Query query)
RemoteCache.removeClientListener(java.lang.Object)
method using the returned client listener as argument.remoteCache
- the remote cache to attach the continuous query listenerqueryListener
- the continuous query listener instancequery
- the query to be used for determining the matching setCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.