Class LockTracking.SimpleLock<T extends Lock>

  • All Implemented Interfaces:
    Lock
    Enclosing class:
    LockTracking<T extends Lock>

    public static class LockTracking.SimpleLock<T extends Lock>
    extends java.lang.Object
    implements Lock
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleLock​(T lock, java.lang.String alias, long acquiredId, java.lang.Throwable stack, java.lang.Thread thread, org.slf4j.Logger logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      boolean isActive()
      Checks whether the lock is still active.
      void release()
      Release the lock, making it inactive.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleLock

        public SimpleLock​(T lock,
                          java.lang.String alias,
                          long acquiredId,
                          java.lang.Throwable stack,
                          java.lang.Thread thread,
                          org.slf4j.Logger logger)
    • Method Detail

      • isActive

        public boolean isActive()
        Description copied from interface: Lock
        Checks whether the lock is still active.
        Specified by:
        isActive in interface Lock
      • release

        public void release()
        Description copied from interface: Lock
        Release the lock, making it inactive.
        Specified by:
        release in interface Lock
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object