Class RestApiQueryCallFactory
- java.lang.Object
-
- io.streamthoughts.azkarra.http.query.RestApiQueryCallFactory
-
- All Implemented Interfaces:
RemoteQueryCallFactory
public class RestApiQueryCallFactory extends Object implements RemoteQueryCallFactory
-
-
Constructor Summary
Constructors Constructor Description RestApiQueryCallFactory(okhttp3.OkHttpClient httpClient)
Creates a newRestApiQueryCallFactory
instance.RestApiQueryCallFactory(okhttp3.OkHttpClient httpClient, String protocol)
Creates a newRestApiQueryCallFactory
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
QueryCall<K,V>create(String applicationId, Endpoint localEndpoint, Endpoint remoteEndpoint, QueryRequest queryRequest)
-
-
-
Constructor Detail
-
RestApiQueryCallFactory
public RestApiQueryCallFactory(okhttp3.OkHttpClient httpClient)
Creates a newRestApiQueryCallFactory
instance.- Parameters:
httpClient
- theOkHttpClient
instance.
-
RestApiQueryCallFactory
public RestApiQueryCallFactory(okhttp3.OkHttpClient httpClient, String protocol)
Creates a newRestApiQueryCallFactory
instance.- Parameters:
httpClient
- theOkHttpClient
instance.
-
-
Method Detail
-
create
public <K,V> QueryCall<K,V> create(String applicationId, Endpoint localEndpoint, Endpoint remoteEndpoint, QueryRequest queryRequest)
- Specified by:
create
in interfaceRemoteQueryCallFactory
-
-