Class HttpRemoteQueryClient
- java.lang.Object
-
- io.streamthoughts.azkarra.http.query.HttpRemoteQueryClient
-
- All Implemented Interfaces:
RemoteQueryClient
public class HttpRemoteQueryClient extends Object implements RemoteQueryClient
-
-
Constructor Summary
Constructors Constructor Description HttpRemoteQueryClient(okhttp3.OkHttpClient httpClient, QueryURLBuilder queryURLBuilder, Serdes<QueryResult> serdes)
Creates a newHttpRemoteQueryClient
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
CompletableFuture<QueryResult<K,V>>query(StreamsServerInfo serverInfo, QueryInfo query, Queried options)
Executes a query to the specified server.
-
-
-
Constructor Detail
-
HttpRemoteQueryClient
public HttpRemoteQueryClient(okhttp3.OkHttpClient httpClient, QueryURLBuilder queryURLBuilder, Serdes<QueryResult> serdes)
Creates a newHttpRemoteQueryClient
instance.- Parameters:
httpClient
- theOkHttpClient
instance.queryURLBuilder
- theQueryURLBuilder
instance.
-
-
Method Detail
-
query
public <K,V> CompletableFuture<QueryResult<K,V>> query(StreamsServerInfo serverInfo, QueryInfo query, Queried options)
Executes a query to the specified server.- Specified by:
query
in interfaceRemoteQueryClient
- Parameters:
serverInfo
- theStreamsServerInfo
to query.query
- theQueryInfo
to send.options
- theQueried
options.- Returns:
- a
CompletableFuture
ofQueryResult
.
-
-