public static interface AsyncTransactionManager.AsyncTransactionFunction<I,O>
AsyncTransactionManager.AsyncTransactionFunction. It receives
a TransactionContext and the output value of the previous transaction step as its input
parameters. The method should return an ApiFuture that will return the result of this
step.| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<O> |
apply(TransactionContext txn,
I input)
This method is called when this transaction step is executed.
|
com.google.api.core.ApiFuture<O> apply(TransactionContext txn, I input) throws Exception
txn - the TransactionContext that can be used to execute statements.input - the result of the previous transaction step.ApiFuture that will return the result of this step, and that will be the
input of the next transaction step. This method should never return null.
Instead, if the method does not have a return value, the method should return ApiFutures#immediateFuture(null).ExceptionCopyright © 2022 Google LLC. All rights reserved.