public class HttpJsonLongRunningClient<RequestT,OperationT> implements LongRunningClientImplementation 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)| 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> |
|