public static interface AsyncTransactionManager.CommitTimestampFuture
extends com.google.api.core.ApiFuture<com.google.cloud.Timestamp>
ApiFuture that returns the commit Timestamp of a Cloud Spanner transaction that
is executed using an AsyncTransactionManager. This future is returned by the call to
AsyncTransactionManager.AsyncTransactionStep.commitAsync() of the last step in the transaction.| Modifier and Type | Method and Description |
|---|---|
com.google.cloud.Timestamp |
get()
Returns the commit timestamp of the transaction.
|
com.google.cloud.Timestamp |
get(long timeout,
TimeUnit unit)
Same as
get(), but will throw a TimeoutException if the transaction does not
finish within the timeout. |
cancel, isCancelled, isDonecom.google.cloud.Timestamp get()
throws AbortedException,
InterruptedException,
ExecutionException
ExecutionException that is
thrown by this method.get in interface Future<com.google.cloud.Timestamp>AbortedException - if the transaction was aborted by Cloud Spanner and needs to be
retried.InterruptedExceptionExecutionExceptioncom.google.cloud.Timestamp get(long timeout,
TimeUnit unit)
throws AbortedException,
InterruptedException,
ExecutionException,
TimeoutException
get(), but will throw a TimeoutException if the transaction does not
finish within the timeout.get in interface Future<com.google.cloud.Timestamp>AbortedExceptionInterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2021 Google LLC. All rights reserved.