@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public class OperationFutures extends Object
| Modifier and Type | Method and Description |
|---|---|
static <ResponseT,MetadataT> |
immediateOperationFuture(OperationSnapshot completedSnapshot)
Creates an already-completed
OperationFuture, useful for testing. |
public static final <ResponseT,MetadataT> OperationFuture<ResponseT,MetadataT> immediateOperationFuture(OperationSnapshot completedSnapshot)
OperationFuture, useful for testing.
completedSnapshot.isDone() must return true. The snapshot's getResponse()
and getMetadata() must be instances of ResponseT and MetadataT,
respectively.