Package org.infinispan.commons.api.query
Interface ContinuousQuery<K,V>
- All Known Subinterfaces:
ContinuousQuery<K,
V>
- All Known Implementing Classes:
ContinuousQueryImpl
public interface ContinuousQuery<K,V>
- Since:
- 15.0
-
Method Summary
Modifier and TypeMethodDescription<C> void
addContinuousQueryListener
(String queryString, Map<String, Object> namedParameters, ContinuousQueryListener<K, C> listener) Add a listener for a continuous query.<C> void
addContinuousQueryListener
(String queryString, ContinuousQueryListener<K, C> listener) Add a listener for a continuous query.<C> void
addContinuousQueryListener
(Query<?> query, ContinuousQueryListener<K, C> listener) Add a listener for a continuous query.Get the list of currently registered listeners.void
Unregisters all listeners.void
removeContinuousQueryListener
(ContinuousQueryListener<K, ?> listener) Remove a continuous query listener.
-
Method Details
-
addContinuousQueryListener
Add a listener for a continuous query.- Parameters:
queryString
- the querylistener
- the listener
-
addContinuousQueryListener
<C> void addContinuousQueryListener(String queryString, Map<String, Object> namedParameters, ContinuousQueryListener<K, C> listener) Add a listener for a continuous query.- Parameters:
queryString
- the querynamedParameters
- the query parameterslistener
- the listener
-
addContinuousQueryListener
Add a listener for a continuous query.- Parameters:
query
- the query objectlistener
- the listener
-
removeContinuousQueryListener
Remove a continuous query listener.- Parameters:
listener
- the listener to remove
-
getListeners
List<ContinuousQueryListener<K,?>> getListeners()Get the list of currently registered listeners. -
removeAllListeners
void removeAllListeners()Unregisters all listeners.
-