public class GrpcRawCallableFactoryClass with utility methods to create low level grpc-based direct callables.
Static Methods
<RequestT,ResponseT>createBidiStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<StatusCode.Code> retryableCodes)
public static BidiStreamingCallable<RequestT,ResponseT> <RequestT,ResponseT>createBidiStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<StatusCode.Code> retryableCodes)Create a bidirectional streaming callable object with grpc-specific functionality. Designed for use by generated code.
| Parameters | |
|---|---|
| Name | Description |
grpcCallSettings |
GrpcCallSettings<RequestT,ResponseT>the gRPC call settings |
retryableCodes |
Set<Code>the StatusCode.Code that should be marked as retryable |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingCallable<RequestT,ResponseT> |
BidiStreamingCallable callable object. |
<RequestT,ResponseT>createClientStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<StatusCode.Code> retryableCodes)
public static ClientStreamingCallable<RequestT,ResponseT> <RequestT,ResponseT>createClientStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<StatusCode.Code> retryableCodes)Create a client-streaming callable object with grpc-specific functionality. Designed for use by generated code.
| Parameters | |
|---|---|
| Name | Description |
grpcCallSettings |
GrpcCallSettings<RequestT,ResponseT>the gRPC call settings |
retryableCodes |
Set<Code>the StatusCode.Code that should be marked as retryable |
| Returns | |
|---|---|
| Type | Description |
ClientStreamingCallable<RequestT,ResponseT> |
|
<RequestT,ResponseT>createServerStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<StatusCode.Code> retryableCodes)
public static ServerStreamingCallable<RequestT,ResponseT> <RequestT,ResponseT>createServerStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<StatusCode.Code> retryableCodes)Create a server-streaming callable with grpc-specific functionality. Designed for use by generated code.
| Parameters | |
|---|---|
| Name | Description |
grpcCallSettings |
GrpcCallSettings<RequestT,ResponseT>the gRPC call settings |
retryableCodes |
Set<Code>the StatusCode.Code that should be marked as retryable |
| Returns | |
|---|---|
| Type | Description |
ServerStreamingCallable<RequestT,ResponseT> |
|
<RequestT,ResponseT>createUnaryCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<StatusCode.Code> retryableCodes)
public static UnaryCallable<RequestT,ResponseT> <RequestT,ResponseT>createUnaryCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<StatusCode.Code> retryableCodes)Create a Unary callable object with minimal grpc-specific functionality.
| Parameters | |
|---|---|
| Name | Description |
grpcCallSettings |
GrpcCallSettings<RequestT,ResponseT>the gRPC call settings |
retryableCodes |
Set<Code>the StatusCode.Code that should be marked as retryable |
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<RequestT,ResponseT> |
|