public interface AsyncRunner
Modifier and Type | Interface and Description |
---|---|
static interface |
AsyncRunner.AsyncWork<R>
Functional interface for executing a read/write transaction asynchronously that returns a
result of type R.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.core.ApiFuture<CommitResponse> |
getCommitResponse()
Returns the
CommitResponse of this transaction. |
com.google.api.core.ApiFuture<com.google.cloud.Timestamp> |
getCommitTimestamp()
Returns the timestamp at which the transaction committed.
|
<R> com.google.api.core.ApiFuture<R> |
runAsync(AsyncRunner.AsyncWork<R> work,
Executor executor)
Executes a read/write transaction asynchronously using the given executor.
|
<R> com.google.api.core.ApiFuture<R> runAsync(AsyncRunner.AsyncWork<R> work, Executor executor)
com.google.api.core.ApiFuture<com.google.cloud.Timestamp> getCommitTimestamp()
Future.get()
will throw an
ExecutionException
if the transaction did not commit.com.google.api.core.ApiFuture<CommitResponse> getCommitResponse()
CommitResponse
of this transaction. Future.get()
throws an
ExecutionException
if the transaction did not commit.Copyright © 2022 Google LLC. All rights reserved.