Interface ContinuousQuery<K,V>
- All Known Implementing Classes:
ContinuousQueryImpl
public interface ContinuousQuery<K,V>
A container of continuous query listeners for a cache.
Implementations are not expected to be threadsafe.
- Since:
- 8.2
- Author:
- anistor@redhat.com
-
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.
-