Class OperationCallSettings<RequestT,ResponseT,MetadataT> (2.39.0)

public final class OperationCallSettings<RequestT,ResponseT,MetadataT>

A settings class to configure an OperationCallable for calls to initiate, resume, and cancel a long-running operation.

Inheritance

java.lang.Object > OperationCallSettings<RequestT,ResponseT,MetadataT>

Type Parameters

NameDescription
RequestT
ResponseT
MetadataT

Static Methods

<RequestT,ResponseT,MetadataT>newBuilder()

public static OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> <RequestT,ResponseT,MetadataT>newBuilder()

Create a new builder which can construct an instance of OperationCallSettings.

Returns
TypeDescription
Builder<RequestT,ResponseT,MetadataT>

Methods

getInitialCallSettings()

public final UnaryCallSettings<RequestT,OperationSnapshot> getInitialCallSettings()
Returns
TypeDescription
UnaryCallSettings<RequestT,OperationSnapshot>

getMetadataTransformer()

public final ApiFunction<OperationSnapshot,MetadataT> getMetadataTransformer()
Returns
TypeDescription
ApiFunction<OperationSnapshot,MetadataT>

getPollingAlgorithm()

public final TimedRetryAlgorithm getPollingAlgorithm()
Returns
TypeDescription
TimedRetryAlgorithm

getResponseTransformer()

public final ApiFunction<OperationSnapshot,ResponseT> getResponseTransformer()
Returns
TypeDescription
ApiFunction<OperationSnapshot,ResponseT>

toBuilder()

public final OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> toBuilder()
Returns
TypeDescription
Builder<RequestT,ResponseT,MetadataT>