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.
|
@Deprecated <Req,Resp> GrpcClientCallFactory.ClientCall<Req,Resp> newCall(GrpcSerializationProvider serializationProvider, Class<Req> requestClass, Class<Resp> responseClass)
newCall(MethodDescriptor, BufferDecoderGroup).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.ClientCall<Req,Resp> newCall(MethodDescriptor<Req,Resp> methodDescriptor, BufferDecoderGroup decompressors)
GrpcClientCallFactory.ClientCall.Req - Type of request.Resp - Type of response.methodDescriptor - describes the method characteristics and how to do serialization of individual objects.decompressors - describes the decompression that is supported for this call.GrpcClientCallFactory.ClientCall.@Deprecated <Req,Resp> GrpcClientCallFactory.StreamingClientCall<Req,Resp> newStreamingCall(GrpcSerializationProvider serializationProvider, Class<Req> requestClass, Class<Resp> responseClass)
newStreamingCall(MethodDescriptor, BufferDecoderGroup).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.StreamingClientCall<Req,Resp> newStreamingCall(MethodDescriptor<Req,Resp> methodDescriptor, BufferDecoderGroup decompressors)
GrpcClientCallFactory.StreamingClientCall.Req - Type of request.Resp - Type of response.methodDescriptor - describes the method characteristics and how to do serialization of individual objects.decompressors - describes the decompression that is supported for this call.GrpcClientCallFactory.StreamingClientCall.@Deprecated <Req,Resp> GrpcClientCallFactory.RequestStreamingClientCall<Req,Resp> newRequestStreamingCall(GrpcSerializationProvider serializationProvider, Class<Req> requestClass, Class<Resp> responseClass)
newRequestStreamingCall(MethodDescriptor, BufferDecoderGroup).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.RequestStreamingClientCall<Req,Resp> newRequestStreamingCall(MethodDescriptor<Req,Resp> methodDescriptor, BufferDecoderGroup decompressors)
GrpcClientCallFactory.RequestStreamingClientCall.Req - Type of request.Resp - Type of response.methodDescriptor - describes the method characteristics and how to do serialization of individual objects.decompressors - describes the decompression that is supported for this call.GrpcClientCallFactory.RequestStreamingClientCall.@Deprecated <Req,Resp> GrpcClientCallFactory.ResponseStreamingClientCall<Req,Resp> newResponseStreamingCall(GrpcSerializationProvider serializationProvider, Class<Req> requestClass, Class<Resp> responseClass)
newResponseStreamingCall(MethodDescriptor, BufferDecoderGroup).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.ResponseStreamingClientCall<Req,Resp> newResponseStreamingCall(MethodDescriptor<Req,Resp> methodDescriptor, BufferDecoderGroup decompressors)
GrpcClientCallFactory.ResponseStreamingClientCall.Req - Type of request.Resp - Type of response.methodDescriptor - describes the method characteristics and how to do serialization of individual objects.decompressors - describes the decompression that is supported for this call.GrpcClientCallFactory.ResponseStreamingClientCall.@Deprecated <Req,Resp> GrpcClientCallFactory.BlockingClientCall<Req,Resp> newBlockingCall(GrpcSerializationProvider serializationProvider, Class<Req> requestClass, Class<Resp> responseClass)
newBlockingCall(MethodDescriptor, BufferDecoderGroup).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.BlockingClientCall<Req,Resp> newBlockingCall(MethodDescriptor<Req,Resp> methodDescriptor, BufferDecoderGroup decompressors)
GrpcClientCallFactory.BlockingClientCall.Req - Type of request.Resp - Type of response.methodDescriptor - describes the method characteristics and how to do serialization of individual objects.decompressors - describes the decompression that is supported for this call.GrpcClientCallFactory.BlockingClientCall.@Deprecated <Req,Resp> GrpcClientCallFactory.BlockingStreamingClientCall<Req,Resp> newBlockingStreamingCall(GrpcSerializationProvider serializationProvider, Class<Req> requestClass, Class<Resp> responseClass)
newBlockingStreamingCall(MethodDescriptor, BufferDecoderGroup).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.BlockingStreamingClientCall<Req,Resp> newBlockingStreamingCall(MethodDescriptor<Req,Resp> methodDescriptor, BufferDecoderGroup decompressors)
GrpcClientCallFactory.BlockingStreamingClientCall.Req - Type of request.Resp - Type of response.methodDescriptor - describes the method characteristics and how to do serialization of individual objects.decompressors - describes the decompression that is supported for this call.GrpcClientCallFactory.BlockingStreamingClientCall.@Deprecated <Req,Resp> GrpcClientCallFactory.BlockingRequestStreamingClientCall<Req,Resp> newBlockingRequestStreamingCall(GrpcSerializationProvider serializationProvider, Class<Req> requestClass, 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.BlockingRequestStreamingClientCall<Req,Resp> newBlockingRequestStreamingCall(MethodDescriptor<Req,Resp> methodDescriptor, BufferDecoderGroup decompressors)
GrpcClientCallFactory.BlockingRequestStreamingClientCall.Req - Type of request.Resp - Type of response.methodDescriptor - describes the method characteristics and how to do serialization of individual objects.decompressors - describes the decompression that is supported for this call.GrpcClientCallFactory.BlockingRequestStreamingClientCall.@Deprecated <Req,Resp> GrpcClientCallFactory.BlockingResponseStreamingClientCall<Req,Resp> newBlockingResponseStreamingCall(GrpcSerializationProvider serializationProvider, Class<Req> requestClass, 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.<Req,Resp> GrpcClientCallFactory.BlockingResponseStreamingClientCall<Req,Resp> newBlockingResponseStreamingCall(MethodDescriptor<Req,Resp> methodDescriptor, BufferDecoderGroup decompressors)
Req - Type of request.Resp - Type of response.methodDescriptor - describes the method characteristics and how to do serialization of individual objects.decompressors - describes the decompression that is supported for this call.GrpcClientCallFactory.BlockingResponseStreamingClientCall.GrpcExecutionContext executionContext()
GrpcExecutionContext used during construction of this object.
Note that the ExecutionContext.ioExecutor() will not necessarily be associated with a specific thread
unless that was how this object was built.
GrpcExecutionContext used during construction of this object.static GrpcClientCallFactory from(StreamingHttpClient httpClient, @Nullable Duration defaultTimeout)
GrpcClientCallFactory using the passed StreamingHttpClient.httpClient - StreamingHttpClient to use. The returned GrpcClientCallFactory will own the
lifecycle of this StreamingHttpClient.defaultTimeout - Duration of default timeout or null for no timeoutGrpcClientCallFactory.