Class ReservedThreadExecutor.ReservedThread

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    ReservedThreadExecutor

    private class ReservedThreadExecutor.ReservedThread
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean _starting  
      private java.util.concurrent.SynchronousQueue<java.lang.Runnable> _task  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ReservedThread()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean offer​(java.lang.Runnable task)  
      private java.lang.Runnable reservedWait()  
      void run()  
      void stop()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • _task

        private final java.util.concurrent.SynchronousQueue<java.lang.Runnable> _task
      • _starting

        private boolean _starting
    • Constructor Detail

      • ReservedThread

        private ReservedThread()
    • Method Detail

      • offer

        public boolean offer​(java.lang.Runnable task)
      • stop

        public void stop()
      • reservedWait

        private java.lang.Runnable reservedWait()
      • run

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

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