Interface InProcessLockingManager.Lock

Enclosing class:
InProcessLockingManager

public static interface InProcessLockingManager.Lock
Represents In-Process locks for Transactions or FeatureLocks.
Author:
Jody Garnett, Refractions Research
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if transaction is authorized for this lock
    boolean
    Check if lock has expired, it will be removed if so
    boolean
    isMatch(String authID)
    Check if authID matches this lock
    void
    Refresh lock
    void
    Release lock
  • Method Details

    • isExpired

      boolean isExpired()
      Check if lock has expired, it will be removed if so
      Returns:
      true if Lock has gone stale
    • isMatch

      boolean isMatch(String authID)
      Check if authID matches this lock
      Returns:
      true if authID matches
    • isAuthorized

      boolean isAuthorized(Transaction transaction)
      Check if transaction is authorized for this lock
      Returns:
      true if transaction is authorized
    • refresh

      void refresh()
      Refresh lock
    • release

      void release()
      Release lock