public interface LockContainer
Modifier and Type | Method and Description |
---|---|
ExtendedLockPromise |
acquire(Object key,
Object lockOwner,
long time,
TimeUnit timeUnit) |
void |
deadlockCheck(DeadlockChecker deadlockChecker)
It forces a deadlock checks in all existing locks.
|
InfinispanLock |
getLock(Object key) |
int |
getNumLocksHeld() |
boolean |
isLocked(Object key) |
void |
release(Object key,
Object lockOwner) |
int |
size() |
ExtendedLockPromise acquire(Object key, Object lockOwner, long time, TimeUnit timeUnit)
key
- the key to lock.InfinispanLock getLock(Object key)
key
- the key to lock.null
.int getNumLocksHeld()
boolean isLocked(Object key)
key
- the key to test.true
if the key is locked, false
otherwise.int size()
void deadlockCheck(DeadlockChecker deadlockChecker)
Copyright © 2021 JBoss by Red Hat. All rights reserved.