Package com.scaleout.client.caching
Class LockToken
java.lang.Object
com.scaleout.client.caching.LockToken
The
LockToken
is an identifier for a lock that is held on an object in the ScaleOut in-memory data grid.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
_value
protected int _valueThe value of this lock token. -
_hasValue
protected boolean _hasValueFlag to indicate if this lock token has a value.
-
-
Constructor Details
-
LockToken
protected LockToken()Default constructor.
-
-
Method Details
-
value
public int value()Retrieve theLockToken
value- Returns:
- the lock token
-
hasValue
public boolean hasValue()Check to see if thisLockToken
has a value. -
emptyLockToken
Retrieve an empty lock token.- Returns:
- an empty lock token where
hasValue()
will always return false.
-