Class HttpJsonOperationSnapshotCallable<RequestT,OperationT> (2.52.0)

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)
Parameters
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.

Parameters
Name Description
request RequestT
context ApiCallContext
Returns
Type Description
ApiFuture<OperationSnapshot>
Overrides