public class CheckLockFunction extends Object implements TransactionalFunction<LockResponse>
| Constructor and Description |
|---|
CheckLockFunction(long extLockId,
long txnId,
boolean zeroWaitReadEnabled,
boolean isExclusiveCTAS) |
| Modifier and Type | Method and Description |
|---|---|
LockResponse |
execute(MultiDataSourceJdbcResource jdbcResource)
Implementations typically should execute transsactional database calls inside.
|
public CheckLockFunction(long extLockId,
long txnId,
boolean zeroWaitReadEnabled,
boolean isExclusiveCTAS)
public LockResponse execute(MultiDataSourceJdbcResource jdbcResource) throws MetaException, NoSuchTxnException, TxnAbortedException, NoSuchLockException
TransactionalFunctionexecute in interface TransactionalFunction<LockResponse>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 functionNoSuchTxnExceptionTxnAbortedExceptionNoSuchLockExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.