public class HttpJsonOperationSnapshotCallable<RequestT,OperationT> extends UnaryCallable<RequestT,OperationSnapshot>
A UnaryCallable
that wraps a UnaryCallable returning an Operation and returns an
OperationSnapshot instead.
Public for technical reasons. For internal use only.
Inheritance
java.lang.Object > UnaryCallable > HttpJsonOperationSnapshotCallable<RequestT,OperationT>Type Parameters
Name | Description |
RequestT | |
OperationT |
Constructors
HttpJsonOperationSnapshotCallable(UnaryCallable<RequestT,OperationT> innerCallable, OperationSnapshotFactory<RequestT,OperationT> operationSnapshotFactory)
public HttpJsonOperationSnapshotCallable(UnaryCallable<RequestT,OperationT> innerCallable, OperationSnapshotFactory<RequestT,OperationT> operationSnapshotFactory)
Name | Description |
innerCallable | UnaryCallable<RequestT,OperationT> |
operationSnapshotFactory | OperationSnapshotFactory<RequestT,OperationT> |
Methods
futureCall(RequestT request, ApiCallContext context)
public ApiFuture<OperationSnapshot> futureCall(RequestT request, ApiCallContext context)
Perform a call asynchronously.
Name | Description |
request | RequestT |
context | ApiCallContext |
Type | Description |
com.google.api.core.ApiFuture<OperationSnapshot> |