Class DistributedQuery<K,V>
- java.lang.Object
-
- io.streamthoughts.azkarra.api.query.DistributedQuery<K,V>
-
public class DistributedQuery<K,V> extends Object
Default class to query a state store either locally, remotely or globally.
-
-
Constructor Summary
Constructors Constructor Description DistributedQuery(RemoteQueryClient remoteQueryClient, PreparedQuery<K,V> query)
Creates a newDistributedQuery
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryResult<K,V>
query(KafkaStreamsContainer streams, Queried options)
Executes this interactive query for the givenKafkaStreams
instance.
-
-
-
Constructor Detail
-
DistributedQuery
public DistributedQuery(RemoteQueryClient remoteQueryClient, PreparedQuery<K,V> query)
Creates a newDistributedQuery
instance.
-
-
Method Detail
-
query
public QueryResult<K,V> query(KafkaStreamsContainer streams, Queried options)
Executes this interactive query for the givenKafkaStreams
instance.- Parameters:
streams
- theKafkaStreamsContainer
instance on which to execute this query.options
- theQueried
options.- Returns:
- a
QueryResult
instance. - Throws:
InvalidStreamsStateException
- if streams is not running
-
-