Interface TotpRecoveryGate.Permit

All Superinterfaces:
AutoCloseable
Enclosing interface:
TotpRecoveryGate

@NotThreadSafe public static interface TotpRecoveryGate.Permit extends AutoCloseable
One caller-thread admission permit, with an idempotent prompt release.
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases this nested permit promptly and idempotently.
    Confirms admission and the original deadline still hold.
  • Method Details

    • isCurrent

      Confirms admission and the original deadline still hold. This check cannot substitute for the store's transactional epoch comparison against stale lease holders.
      Returns:
      true only while this permit remains current
      Since:
      1.0.0
    • close

      void close()
      Releases this nested permit promptly and idempotently. The final close releases admission.
      Specified by:
      close in interface AutoCloseable
      Since:
      1.0.0