public class NoOpPendingLockManager extends Object implements PendingLockManager
PendingLockManager implementation that does nothing.public static NoOpPendingLockManager getInstance()
public PendingLockPromise checkPendingTransactionsForKey(TxInvocationContext<?> ctx, Object key, long time, TimeUnit unit)
PendingLockManagerPendingLockManager.awaitPendingTransactionsForKey(TxInvocationContext, Object, long, TimeUnit) but non-blocking.
Multiple invocations with the same transaction returns the same PendingLockPromise. For cleanup purposes,
PendingLockManager.awaitPendingTransactionsForKey(TxInvocationContext, Object, long, TimeUnit) must be invoked
afterwards.
checkPendingTransactionsForKey in interface PendingLockManagerctx - the TxInvocationContext.key - the key to check.time - timeout.unit - TimeUnit of time.PendingLockPromise.public PendingLockPromise checkPendingTransactionsForKeys(TxInvocationContext<?> ctx, Collection<Object> keys, long time, TimeUnit unit)
PendingLockManagerPendingLockManager.awaitPendingTransactionsForAllKeys(TxInvocationContext, Collection, long, TimeUnit) but
non-blocking.
Multiple invocations with the same transaction returns the same PendingLockPromise. For cleanup purposes,
PendingLockManager.awaitPendingTransactionsForAllKeys(TxInvocationContext, Collection, long, TimeUnit) must be invoked
afterwards.
checkPendingTransactionsForKeys in interface PendingLockManagerctx - the TxInvocationContext.keys - the keys to check.time - timeout.unit - TimeUnit of time.PendingLockPromise.public long awaitPendingTransactionsForKey(TxInvocationContext<?> ctx, Object key, long time, TimeUnit unit) throws InterruptedException
PendingLockManagerkey acquired.awaitPendingTransactionsForKey in interface PendingLockManagerctx - the TxInvocationContext.key - the key to check.time - timeout.unit - TimeUnit of time.InterruptedException - if the thread is interrupted while waiting.public long awaitPendingTransactionsForAllKeys(TxInvocationContext<?> ctx, Collection<Object> keys, long time, TimeUnit unit) throws InterruptedException
PendingLockManagerkeys
acquired.awaitPendingTransactionsForAllKeys in interface PendingLockManagerctx - the TxInvocationContext.keys - the keys to check.time - timeout.unit - TimeUnit of time.InterruptedException - if the thread is interrupted while waiting.Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.