Class NoOpPendingLockManager
java.lang.Object
org.infinispan.util.concurrent.locks.impl.NoOpPendingLockManager
- All Implemented Interfaces:
PendingLockManager
An
PendingLockManager
implementation that does nothing.- Since:
- 8.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptioncheckPendingTransactionsForKey
(TxInvocationContext<?> ctx, Object key, long time, TimeUnit unit) Check for any transaction with older topology id to complete that may have the lock for any key inkeys
acquired.checkPendingTransactionsForKeys
(TxInvocationContext<?> ctx, Collection<Object> keys, long time, TimeUnit unit) Check for any transaction with older topology id to complete that may have the lock for any key inkeys
acquired.static NoOpPendingLockManager
-
Method Details
-
getInstance
-
checkPendingTransactionsForKey
public PendingLockPromise checkPendingTransactionsForKey(TxInvocationContext<?> ctx, Object key, long time, TimeUnit unit) Description copied from interface:PendingLockManager
Check for any transaction with older topology id to complete that may have the lock for any key inkeys
acquired.Multiple invocations with the same transaction returns the same
PendingLockPromise
.- Specified by:
checkPendingTransactionsForKey
in interfacePendingLockManager
- Parameters:
ctx
- theTxInvocationContext
.key
- the key to check.time
- timeout.unit
-TimeUnit
oftime
.- Returns:
- a
PendingLockPromise
.
-
checkPendingTransactionsForKeys
public PendingLockPromise checkPendingTransactionsForKeys(TxInvocationContext<?> ctx, Collection<Object> keys, long time, TimeUnit unit) Description copied from interface:PendingLockManager
Check for any transaction with older topology id to complete that may have the lock for any key inkeys
acquired.Multiple invocations with the same transaction returns the same
PendingLockPromise
.- Specified by:
checkPendingTransactionsForKeys
in interfacePendingLockManager
- Parameters:
ctx
- theTxInvocationContext
.keys
- the keys to check.time
- timeout.unit
-TimeUnit
oftime
.- Returns:
- a
PendingLockPromise
.
-