Class InterruptibleTask.Blocker

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Runnable
    Enclosing class:
    InterruptibleTask<T>

    static final class InterruptibleTask.Blocker
    extends java.util.concurrent.locks.AbstractOwnableSynchronizer
    implements java.lang.Runnable
    Using this as the blocker object allows introspection and debugging tools to see that the currentRunner thread is blocked on the progress of the interruptor thread, which can help identify deadlocks.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      private void setOwner​(java.lang.Thread thread)  
      java.lang.String toString()  
      • Methods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizer

        getExclusiveOwnerThread, setExclusiveOwnerThread
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • setOwner

        private void setOwner​(java.lang.Thread thread)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object