public class OpenTxnsFunction extends Object implements TransactionalFunction<List<Long>>
| Constructor and Description |
|---|
OpenTxnsFunction(OpenTxnRequest rqst,
long openTxnTimeOutMillis,
List<TransactionalMetaStoreEventListener> transactionalListeners) |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
execute(MultiDataSourceJdbcResource jdbcResource)
Implementations typically should execute transsactional database calls inside.
|
public OpenTxnsFunction(OpenTxnRequest rqst, long openTxnTimeOutMillis, List<TransactionalMetaStoreEventListener> transactionalListeners)
public List<Long> execute(MultiDataSourceJdbcResource jdbcResource) throws MetaException
TransactionalFunctionexecute in interface TransactionalFunction<List<Long>>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 functionCopyright © 2024 The Apache Software Foundation. All rights reserved.