Class HttpJsonLongRunningClient<RequestT,OperationT> (2.55.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

Name Description
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
Name Description
operationCallable UnaryCallable<RequestT,OperationT>
operationSnapshotFactory OperationSnapshotFactory<RequestT,OperationT>
pollingRequestFactory PollingRequestFactory<RequestT>

Methods

cancelOperationCallable()

public UnaryCallable<String,Void> cancelOperationCallable()

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

Returns
Type Description
UnaryCallable<String,Void>

deleteOperationCallable()

public UnaryCallable<String,Void> deleteOperationCallable()

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

Returns
Type Description
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
Type Description
UnaryCallable<String,OperationSnapshot>