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 storeName either locally or remotely.
-
-
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 a state storeName query for specified arguments.
-
-
-
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 a state storeName query for specified arguments.- Parameters:
streams
- theKafkaStreamsContainer
instance on which to execute this query.options
- theQueried
options.- Returns:
- a
QueryResult
instance.
-
-