Package com.google.api.gax.httpjson
Class HttpJsonOperationSnapshotCallable<RequestT,OperationT>
- java.lang.Object
-
- com.google.api.gax.rpc.UnaryCallable<RequestT,OperationSnapshot>
-
- com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable<RequestT,OperationT>
-
@BetaApi @InternalApi public class HttpJsonOperationSnapshotCallable<RequestT,OperationT> extends UnaryCallable<RequestT,OperationSnapshot>
AUnaryCallable
that wraps a UnaryCallable returning an Operation and returns an OperationSnapshot instead.Public for technical reasons. For internal use only.
-
-
Constructor Summary
Constructors Constructor Description HttpJsonOperationSnapshotCallable(UnaryCallable<RequestT,OperationT> innerCallable, OperationSnapshotFactory<RequestT,OperationT> operationSnapshotFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.core.ApiFuture<OperationSnapshot>
futureCall(RequestT request, ApiCallContext context)
Perform a call asynchronously.-
Methods inherited from class com.google.api.gax.rpc.UnaryCallable
call, call, futureCall, withDefaultCallContext
-
-
-
-
Constructor Detail
-
HttpJsonOperationSnapshotCallable
public HttpJsonOperationSnapshotCallable(UnaryCallable<RequestT,OperationT> innerCallable, OperationSnapshotFactory<RequestT,OperationT> operationSnapshotFactory)
-
-
Method Detail
-
futureCall
public com.google.api.core.ApiFuture<OperationSnapshot> futureCall(RequestT request, ApiCallContext context)
Perform a call asynchronously.- Specified by:
futureCall
in classUnaryCallable<RequestT,OperationSnapshot>
context
-ApiCallContext
to make the call with- Returns:
ApiFuture
for the call result
-
-