Class DefaultPendingLockManager
java.lang.Object
org.infinispan.util.concurrent.locks.impl.DefaultPendingLockManager
- All Implemented Interfaces:
- PendingLockManager
The default implementation for 
PendingLockManager.
 In transactional caches, a transaction would wait for transaction originated in a older topology id. It can happen when topology changes and a backup owner becomes the primary owner.
- Since:
- 8.0
- Author:
- Pedro Ruivo
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 inkeysacquired.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 inkeysacquired.
- 
Constructor Details- 
DefaultPendingLockManagerpublic DefaultPendingLockManager()
 
- 
- 
Method Details- 
checkPendingTransactionsForKeypublic PendingLockPromise checkPendingTransactionsForKey(TxInvocationContext<?> ctx, Object key, long time, TimeUnit unit) Description copied from interface:PendingLockManagerCheck for any transaction with older topology id to complete that may have the lock for any key inkeysacquired.Multiple invocations with the same transaction returns the same PendingLockPromise.- Specified by:
- checkPendingTransactionsForKeyin interface- PendingLockManager
- Parameters:
- ctx- the- TxInvocationContext.
- key- the key to check.
- time- timeout.
- unit-- TimeUnitof- time.
- Returns:
- a PendingLockPromise.
 
- 
checkPendingTransactionsForKeyspublic PendingLockPromise checkPendingTransactionsForKeys(TxInvocationContext<?> ctx, Collection<Object> keys, long time, TimeUnit unit) Description copied from interface:PendingLockManagerCheck for any transaction with older topology id to complete that may have the lock for any key inkeysacquired.Multiple invocations with the same transaction returns the same PendingLockPromise.- Specified by:
- checkPendingTransactionsForKeysin interface- PendingLockManager
- Parameters:
- ctx- the- TxInvocationContext.
- keys- the keys to check.
- time- timeout.
- unit-- TimeUnitof- time.
- Returns:
- a PendingLockPromise.
 
 
-