Class HttpJsonLongRunningClient<RequestT,OperationT> (2.21.0)

public class HttpJsonLongRunningClient<RequestT,OperationT> implements LongRunningClient

Implementation of LongRunningClient based on REST transport.

Public for technical reasons. For internal use only.

Inheritance

java.lang.Object > HttpJsonLongRunningClient<RequestT,OperationT>

Implements

LongRunningClient

Type Parameters

NameDescription
RequestT
OperationT

Constructors

HttpJsonLongRunningClient(UnaryCallable<RequestT,OperationT> operationCallable, OperationSnapshotFactory<RequestT,OperationT> operationSnapshotFactory, PollingRequestFactory<RequestT> pollingRequestFactory)

public HttpJsonLongRunningClient(UnaryCallable<RequestT,OperationT> operationCallable, OperationSnapshotFactory<RequestT,OperationT> operationSnapshotFactory, PollingRequestFactory<RequestT> pollingRequestFactory)
Parameters
NameDescription
operationCallableUnaryCallable<RequestT,OperationT>
operationSnapshotFactoryOperationSnapshotFactory<RequestT,OperationT>
pollingRequestFactoryPollingRequestFactory<RequestT>

Methods

cancelOperationCallable()

public UnaryCallable<String,Void> cancelOperationCallable()

Returns a UnaryCallable which can issue calls to cancel an operation.

Returns
TypeDescription
UnaryCallable<String,Void>

deleteOperationCallable()

public UnaryCallable<String,Void> deleteOperationCallable()

Returns a UnaryCallable which can issue calls to delete an operation.

Returns
TypeDescription
UnaryCallable<String,Void>

getOperationCallable()

public UnaryCallable<String,OperationSnapshot> getOperationCallable()

Returns a UnaryCallable which can issue calls to get the latest state of an operation.

Returns
TypeDescription
UnaryCallable<String,OperationSnapshot>