Class OperationCallSettings<RequestT,ResponseT,MetadataT> (2.59.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

Name Description
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
Type Description
Builder<RequestT,ResponseT,MetadataT>

Methods

getInitialCallSettings()

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

getMetadataTransformer()

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

getPollingAlgorithm()

public final TimedRetryAlgorithm getPollingAlgorithm()
Returns
Type Description
TimedRetryAlgorithm

getResponseTransformer()

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

toBuilder()

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