Class LockToken

java.lang.Object
com.scaleout.client.caching.LockToken

public abstract class LockToken extends Object
The LockToken is an identifier for a lock that is held on an object in the ScaleOut in-memory data grid.
  • Field Details

    • _value

      protected int _value
      The value of this lock token.
    • _hasValue

      protected boolean _hasValue
      Flag to indicate if this lock token has a value.
  • Constructor Details

    • LockToken

      protected LockToken()
      Default constructor.
  • Method Details

    • value

      public int value()
      Retrieve the LockToken value
      Returns:
      the lock token
    • hasValue

      public boolean hasValue()
      Check to see if this LockToken has a value.
      Returns:
      true if the LockToken has a value, false if this LockToken has no value
    • emptyLockToken

      public static LockToken emptyLockToken()
      Retrieve an empty lock token.
      Returns:
      an empty lock token where hasValue() will always return false.