LockType
- the type of lockpublic class NullLockPreChecker<LockType> extends Object implements LockPreChecker<LockType>
Constructor and Description |
---|
NullLockPreChecker()
Creates a new pre-checker.
|
Modifier and Type | Method and Description |
---|---|
void |
locked(LockGrant<LockType> g)
A lock has been granted.
|
void |
pre_check_wait(LockRequest<LockType> r,
Target<LockType> t)
Checks if we can wait for a lock.
|
void |
unlocked(LockGrant<LockType> g)
A lock has been released.
|
public void pre_check_wait(LockRequest<LockType> r, Target<LockType> t)
LockPreChecker
pre_check_wait
in interface LockPreChecker<LockType>
r
- the lock requestt
- the lock targetpublic void locked(LockGrant<LockType> g)
LockManagerListener
locked
in interface LockManagerListener<LockType>
g
- the granted lockpublic void unlocked(LockGrant<LockType> g)
LockManagerListener
unlocked
in interface LockManagerListener<LockType>
g
- the released lockCopyright © 2015. All rights reserved.