public class HttpJsonLongRunningClient<RequestT,OperationT> implements LongRunningClient
Implementation of LongRunningClient based on REST transport.
Public for technical reasons. For internal use only.
Implements
LongRunningClientType 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)
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.
Type | Description |
UnaryCallable<String,Void> |
deleteOperationCallable()
public UnaryCallable<String,Void> deleteOperationCallable()
Returns a UnaryCallable which can issue calls to delete an operation.
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.
Type | Description |
UnaryCallable<String,OperationSnapshot> |