Class OrderedMemoryAwareThreadPoolExecutor.ChildExecutor

  • All Implemented Interfaces:
    java.lang.Runnable, java.util.concurrent.Executor
    Enclosing class:
    OrderedMemoryAwareThreadPoolExecutor

    protected final class OrderedMemoryAwareThreadPoolExecutor.ChildExecutor
    extends java.lang.Object
    implements java.util.concurrent.Executor, java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.AtomicBoolean isRunning  
      private java.util.Queue<java.lang.Runnable> tasks  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ChildExecutor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(java.lang.Runnable command)  
      void run()  
      • Methods inherited from class java.lang.Object

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

      • tasks

        private final java.util.Queue<java.lang.Runnable> tasks
      • isRunning

        private final java.util.concurrent.atomic.AtomicBoolean isRunning
    • Constructor Detail

      • ChildExecutor

        protected ChildExecutor()
    • Method Detail

      • execute

        public void execute​(java.lang.Runnable command)
        Specified by:
        execute in interface java.util.concurrent.Executor
      • run

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