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 newDistributedQueryinstance.
-
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 givenKafkaStreamsinstance.
-
-
-
Constructor Detail
-
DistributedQuery
public DistributedQuery(RemoteQueryClient remoteQueryClient, PreparedQuery<K,V> query)
Creates a newDistributedQueryinstance.
-
-
Method Detail
-
query
public QueryResult<K,V> query(KafkaStreamsContainer streams, Queried options)
Executes this interactive query for the givenKafkaStreamsinstance.- Parameters:
streams- theKafkaStreamsContainerinstance on which to execute this query.options- theQueriedoptions.- Returns:
- a
QueryResultinstance. - Throws:
InvalidStreamsStateException- if streams is not running
-
-