Class HttpJsonOperationSnapshotCallable<RequestT,OperationT> (2.23.2)

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

NameDescription
RequestT
OperationT

Constructors

HttpJsonOperationSnapshotCallable(UnaryCallable<RequestT,OperationT> innerCallable, OperationSnapshotFactory<RequestT,OperationT> operationSnapshotFactory)

public HttpJsonOperationSnapshotCallable(UnaryCallable<RequestT,OperationT> innerCallable, OperationSnapshotFactory<RequestT,OperationT> operationSnapshotFactory)
Parameters
NameDescription
innerCallableUnaryCallable<RequestT,OperationT>
operationSnapshotFactoryOperationSnapshotFactory<RequestT,OperationT>

Methods

futureCall(RequestT request, ApiCallContext context)

public ApiFuture<OperationSnapshot> futureCall(RequestT request, ApiCallContext context)

Perform a call asynchronously.

Parameters
NameDescription
requestRequestT
contextApiCallContext
Returns
TypeDescription
ApiFuture<OperationSnapshot>
Overrides