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 Detail

      • 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