Interface Lock

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  Lock.ExtendedSupplier<T extends Lock>
      Extension of the Lock.Supplier interface to support tryLock().
      static interface  Lock.Supplier<T extends Lock>
      Functional interface for supplying a lock with support for InterruptedException.
    • Method Detail

      • isActive

        boolean isActive()
        Checks whether the lock is still active.
      • release

        void release()
        Release the lock, making it inactive.