@FunctionalInterface public interface Executor<R>
The transaction commits after the function finishes executing all statements and if no exception is thrown inside the function.
If an exception is thrown then the transaction will be aborted.
The function will receive a TransactionExecutor
to execute PartiQL statements.
Modifier and Type | Method and Description |
---|---|
R |
execute(TransactionExecutor executor)
Executes the operation using the specified
TransactionExecutor . |
R execute(TransactionExecutor executor)
TransactionExecutor
.executor
- The executor to use in executing any statements against QLDB.