Class OperationFutures (2.8.1)

public class OperationFutures

Inheritance

java.lang.Object > OperationFutures

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
NameDescription
completedSnapshotOperationSnapshot
Returns
TypeDescription
OperationFuture<ResponseT,MetadataT>