Class OperationFutures (2.18.6)

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