public class EnsureValidTxnFunction extends Object implements TransactionalFunction<Void>
| Constructor and Description |
|---|
EnsureValidTxnFunction(long txnId) |
| Modifier and Type | Method and Description |
|---|---|
Void |
execute(MultiDataSourceJdbcResource jdbcResource)
Implementations typically should execute transsactional database calls inside.
|
public Void execute(MultiDataSourceJdbcResource jdbcResource) throws MetaException, NoSuchTxnException, TxnAbortedException
TransactionalFunctionexecute in interface TransactionalFunction<Void>jdbcResource - A MultiDataSourceJdbcResource instance responsible for providing all the necessary resources
to be able to perform transactional database calls.MetaException - Thrown in case of application error within the functionNoSuchTxnExceptionTxnAbortedExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.