public abstract class LockToken
extends java.lang.Object
LockToken is an identifier for a lock that is held on an object in the ScaleOut in-memory data grid.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_hasValue
Flag to indicate if this lock token has a value.
|
protected int |
_value
The value of this lock token.
|
| Modifier | Constructor and Description |
|---|---|
protected |
LockToken()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static LockToken |
emptyLockToken()
Retrieve an empty lock token.
|
boolean |
hasValue()
Check to see if this
LockToken has a value. |
int |
value()
Retrieve the
LockToken value |
protected int _value
protected boolean _hasValue
public int value()
LockToken valuepublic boolean hasValue()
LockToken has a value.public static LockToken emptyLockToken()
hasValue() will always return false.