Interface AsyncRunner (6.50.1)

public interface AsyncRunner

Methods

<R>runAsync(AsyncRunner.AsyncWork<R> work, Executor executor)

public abstract ApiFuture<R> <R>runAsync(AsyncRunner.AsyncWork<R> work, Executor executor)

Executes a read/write transaction asynchronously using the given executor.

Parameters
NameDescription
workAsyncWork<R>
executorExecutor
Returns
TypeDescription
ApiFuture<R>

getCommitResponse()

public abstract ApiFuture<CommitResponse> getCommitResponse()

Returns the CommitResponse of this transaction. ApiFuture#get() throws an ExecutionException if the transaction did not commit.

Returns
TypeDescription
ApiFuture<CommitResponse>

getCommitTimestamp()

public abstract ApiFuture<Timestamp> getCommitTimestamp()

Returns the timestamp at which the transaction committed. ApiFuture#get() will throw an ExecutionException if the transaction did not commit.

Returns
TypeDescription
ApiFuture<com.google.cloud.Timestamp>