Interface AsyncRunner (6.82.0)

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
Name Description
work AsyncWork<R>
executor Executor
Returns
Type Description
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
Type Description
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
Type Description
ApiFuture<com.google.cloud.Timestamp>