Class OperationFutures (2.55.0)

public class OperationFutures

Inheritance

java.lang.Object > OperationFutures

Static Methods

<ResponseT,MetadataT>immediateOperationFuture(OperationSnapshot completedSnapshot)

public static final OperationFuture<ResponseT,MetadataT> <ResponseT,MetadataT>immediateOperationFuture(OperationSnapshot completedSnapshot)

Creates an already-completed OperationFuture, useful for testing.

completedSnapshot.isDone() must return true. The snapshot's getResponse() and getMetadata() must be instances of ResponseT and MetadataT, respectively.

Parameter
Name Description
completedSnapshot OperationSnapshot
Returns
Type Description
OperationFuture<ResponseT,MetadataT>