Package com.google.api.gax.longrunning
Class OperationFutures
java.lang.Object
com.google.api.gax.longrunning.OperationFutures
-
Method Summary
Modifier and TypeMethodDescriptionstatic final <ResponseT,MetadataT>
OperationFuture<ResponseT,MetadataT> immediateOperationFuture(OperationSnapshot completedSnapshot) Creates an already-completedOperationFuture, useful for testing.
-
Method Details
-
immediateOperationFuture
public static final <ResponseT,MetadataT> OperationFuture<ResponseT,MetadataT> immediateOperationFuture(OperationSnapshot completedSnapshot) Creates an already-completedOperationFuture, useful for testing.completedSnapshot.isDone()must return true. The snapshot'sgetResponse()andgetMetadata()must be instances ofResponseTandMetadataT, respectively.
-