Class OperationFutures (2.20.0)

Stay organized with collections Save and categorize content based on your preferences.
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>