public interface GrpcClientCallFactory extends ListenableAsyncCloseable
Modifier and Type | Interface and Description |
---|---|
static interface |
GrpcClientCallFactory.BlockingClientCall<Req,Resp>
An abstraction to make blocking client calls.
|
static interface |
GrpcClientCallFactory.BlockingRequestStreamingClientCall<Req,Resp>
An abstraction to make blocking client calls where request is streaming.
|
static interface |
GrpcClientCallFactory.BlockingResponseStreamingClientCall<Req,Resp>
An abstraction to make blocking client calls where response is streaming.
|
static interface |
GrpcClientCallFactory.BlockingStreamingClientCall<Req,Resp>
An abstraction to make blocking bi-directional streaming client calls.
|
static interface |
GrpcClientCallFactory.ClientCall<Req,Resp>
An abstraction to make asynchronous client calls.
|
static interface |
GrpcClientCallFactory.RequestStreamingClientCall<Req,Resp>
An abstraction to make asynchronous client calls where request is streaming.
|
static interface |
GrpcClientCallFactory.ResponseStreamingClientCall<Req,Resp>
An abstraction to make asynchronous client calls where response is streaming.
|
static interface |
GrpcClientCallFactory.StreamingClientCall<Req,Resp>
An abstraction to make asynchronous bi-directional streaming client calls.
|
onClose
closeAsync, closeAsyncGracefully
<Req,Resp> GrpcClientCallFactory.ClientCall<Req,Resp> newCall(GrpcSerializationProvider serializationProvider, java.lang.Class<Req> requestClass, java.lang.Class<Resp> responseClass)
GrpcClientCallFactory.ClientCall
.Req
- Type of request.Resp
- Type of response.serializationProvider
- GrpcSerializationProvider
to use.requestClass
- Class
object for the request.responseClass
- Class
object for the response.GrpcClientCallFactory.ClientCall
.<Req,Resp> GrpcClientCallFactory.StreamingClientCall<Req,Resp> newStreamingCall(GrpcSerializationProvider serializationProvider, java.lang.Class<Req> requestClass, java.lang.Class<Resp> responseClass)
GrpcClientCallFactory.StreamingClientCall
.Req
- Type of request.Resp
- Type of response.serializationProvider
- GrpcSerializationProvider
to use.requestClass
- Class
object for the request.responseClass
- Class
object for the response.GrpcClientCallFactory.StreamingClientCall
.<Req,Resp> GrpcClientCallFactory.RequestStreamingClientCall<Req,Resp> newRequestStreamingCall(GrpcSerializationProvider serializationProvider, java.lang.Class<Req> requestClass, java.lang.Class<Resp> responseClass)
GrpcClientCallFactory.RequestStreamingClientCall
.Req
- Type of request.Resp
- Type of response.serializationProvider
- GrpcSerializationProvider
to use.requestClass
- Class
object for the request.responseClass
- Class
object for the response.GrpcClientCallFactory.RequestStreamingClientCall
.<Req,Resp> GrpcClientCallFactory.ResponseStreamingClientCall<Req,Resp> newResponseStreamingCall(GrpcSerializationProvider serializationProvider, java.lang.Class<Req> requestClass, java.lang.Class<Resp> responseClass)
GrpcClientCallFactory.ResponseStreamingClientCall
.Req
- Type of request.Resp
- Type of response.serializationProvider
- GrpcSerializationProvider
to use.requestClass
- Class
object for the request.responseClass
- Class
object for the response.GrpcClientCallFactory.ResponseStreamingClientCall
.<Req,Resp> GrpcClientCallFactory.BlockingClientCall<Req,Resp> newBlockingCall(GrpcSerializationProvider serializationProvider, java.lang.Class<Req> requestClass, java.lang.Class<Resp> responseClass)
GrpcClientCallFactory.BlockingClientCall
.Req
- Type of request.Resp
- Type of response.serializationProvider
- GrpcSerializationProvider
to use.requestClass
- Class
object for the request.responseClass
- Class
object for the response.GrpcClientCallFactory.BlockingClientCall
.<Req,Resp> GrpcClientCallFactory.BlockingStreamingClientCall<Req,Resp> newBlockingStreamingCall(GrpcSerializationProvider serializationProvider, java.lang.Class<Req> requestClass, java.lang.Class<Resp> responseClass)
GrpcClientCallFactory.BlockingStreamingClientCall
.Req
- Type of request.Resp
- Type of response.serializationProvider
- GrpcSerializationProvider
to use.requestClass
- Class
object for the request.responseClass
- Class
object for the response.GrpcClientCallFactory.BlockingStreamingClientCall
.<Req,Resp> GrpcClientCallFactory.BlockingRequestStreamingClientCall<Req,Resp> newBlockingRequestStreamingCall(GrpcSerializationProvider serializationProvider, java.lang.Class<Req> requestClass, java.lang.Class<Resp> responseClass)
GrpcClientCallFactory.BlockingRequestStreamingClientCall
.Req
- Type of request.Resp
- Type of response.serializationProvider
- GrpcSerializationProvider
to use.requestClass
- Class
object for the request.responseClass
- Class
object for the response.GrpcClientCallFactory.BlockingRequestStreamingClientCall
.<Req,Resp> GrpcClientCallFactory.BlockingResponseStreamingClientCall<Req,Resp> newBlockingResponseStreamingCall(GrpcSerializationProvider serializationProvider, java.lang.Class<Req> requestClass, java.lang.Class<Resp> responseClass)
GrpcClientCallFactory.BlockingResponseStreamingClientCall
.Req
- Type of request.Resp
- Type of response.serializationProvider
- GrpcSerializationProvider
to use.requestClass
- Class
object for the request.responseClass
- Class
object for the response.GrpcClientCallFactory.BlockingResponseStreamingClientCall
.static GrpcClientCallFactory from(StreamingHttpClient httpClient)
GrpcClientCallFactory
using the passed StreamingHttpClient
.httpClient
- StreamingHttpClient
to use. The returned GrpcClientCallFactory
will own the
lifecycle of this StreamingHttpClient
.GrpcClientCallFactory
.