Package com.google.cloud.spanner
Interface AsyncTransactionManager.TransactionContextFuture
-
- All Superinterfaces:
com.google.api.core.ApiFuture<TransactionContext>
,Future<TransactionContext>
- Enclosing interface:
- AsyncTransactionManager
public static interface AsyncTransactionManager.TransactionContextFuture extends com.google.api.core.ApiFuture<TransactionContext>
ApiFuture
that returns aTransactionContext
and that supports chaining of multipleAsyncTransactionManager.TransactionContextFuture
s to form a transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
then
<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.MoreExecutors.directExecutor()
can be be used for lightweight functions, but should be avoided for heavy or blocking operations. See alsoListenableFuture.addListener(Runnable, Executor)
for further information.
-
-