public interface RemoteLockCommand
A CacheRpcCommand that needs to acquire locks should implement this interface.
This way, Infinispan tries to provide a better management to optimize the system resources usage.
| Modifier and Type | Method and Description |
|---|---|
Object |
getKeyLockOwner()
It returns the lock owner of the key.
|
Collection<Object> |
getKeysToLock()
It returns a
Collection with the keys to be lock. |
boolean |
hasSkipLocking()
It checks if this command should acquire locks.
|
boolean |
hasZeroLockAcquisition() |
Collection<Object> getKeysToLock()
Collection with the keys to be lock.
It may return an empty collection if no keys needs to be locked independently of the return value of hasSkipLocking(). It may contains duplicated keys and null is not a valid return value.
Collection of keys to lock.Object getKeyLockOwner()
Usually, in transaction caches it is the GlobalTransaction and in
non-transactional caches the CommandInvocationId.
boolean hasZeroLockAcquisition()
boolean hasSkipLocking()
true if locks should be acquired for the keys in getKeysToLock().Copyright © 2025 JBoss, a division of Red Hat. All rights reserved.