Class GrpcRawCallableFactory (2.23.2)

public class GrpcRawCallableFactory

Class with utility methods to create low level grpc-based direct callables.

Inheritance

java.lang.Object > GrpcRawCallableFactory

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
NameDescription
grpcCallSettingsGrpcCallSettings<RequestT,ResponseT>

the gRPC call settings

retryableCodesSet<Code>

the StatusCode.Code that should be marked as retryable

Returns
TypeDescription
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
NameDescription
grpcCallSettingsGrpcCallSettings<RequestT,ResponseT>

the gRPC call settings

retryableCodesSet<Code>

the StatusCode.Code that should be marked as retryable

Returns
TypeDescription
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
NameDescription
grpcCallSettingsGrpcCallSettings<RequestT,ResponseT>

the gRPC call settings

retryableCodesSet<Code>

the StatusCode.Code that should be marked as retryable

Returns
TypeDescription
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
NameDescription
grpcCallSettingsGrpcCallSettings<RequestT,ResponseT>

the gRPC call settings

retryableCodesSet<Code>

the StatusCode.Code that should be marked as retryable

Returns
TypeDescription
UnaryCallable<RequestT,ResponseT>