public static interface AsyncTransactionManager.TransactionContextFuture extends com.google.api.core.ApiFuture<TransactionContext>
ApiFuture
that returns a TransactionContext
and that supports chaining of
multiple AsyncTransactionManager.TransactionContextFuture
s to form a transaction.Modifier and Type | Method and Description |
---|---|
<O> AsyncTransactionManager.AsyncTransactionStep<Void,O> |
then(AsyncTransactionManager.AsyncTransactionFunction<Void,O> function,
Executor executor)
Sets the first step to execute as part of this transaction after the transaction has started
using the specified executor.
|
<O> AsyncTransactionManager.AsyncTransactionStep<Void,O> then(AsyncTransactionManager.AsyncTransactionFunction<Void,O> function, Executor executor)
MoreExecutors.directExecutor()
can be be used for
lightweight functions, but should be avoided for heavy or blocking operations. See also
ListenableFuture.addListener(Runnable, Executor)
for further information.Copyright © 2021 Google LLC. All rights reserved.