public static interface AsyncTransactionManager.AsyncTransactionFunction<I,O>
Each step in a transaction chain is defined by an 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.
apply(TransactionContext txn, I input)
public abstract ApiFuture<O> apply(TransactionContext txn, I input)
This method is called when this transaction step is executed. The input value is the result of the previous step, and this method will only be called if the previous step executed successfully.
the TransactionContext that can be used to execute statements.
the result of the previous transaction step.
an 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