static class LockManager.LockRef
extends java.lang.Object
LockManager
.Modifier and Type | Field and Description |
---|---|
private LockManager.Lock |
lock
Reference to Lock
|
private int |
type
Lock type
|
Constructor and Description |
---|
LockRef(LockManager.Lock lock,
int type)
Construct an instance of LockRef.
|
Modifier and Type | Method and Description |
---|---|
void |
release()
Release lock.
|
java.lang.String |
toString() |
boolean |
upgrade()
Upgrade RX lock to WX lock.
|
private LockManager.Lock lock
private int type
public LockRef(LockManager.Lock lock, int type)
lock
- Reference to Lock objecttype
- Type of the lock to set/remove.