Class OperationFutures (2.39.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
NameDescription
completedSnapshotOperationSnapshot
Returns
TypeDescription
OperationFuture<ResponseT,MetadataT>