Interface ThreadLock

    • Method Detail

      • isLockedByOtherThread

        boolean isLockedByOtherThread()
        Query whether the lock is hold by the a thread other than the current thread.
      • isOwner

        boolean isOwner​(Thread thread)
        Query whether the lock is hold by the given thread.
      • getOwner

        Thread getOwner()
        Returns:
        the Thread owning this lock if locked, otherwise null