Class MemoryAwareThreadPoolExecutor.NewThreadRunsPolicy

  • All Implemented Interfaces:
    java.util.concurrent.RejectedExecutionHandler
    Enclosing class:
    MemoryAwareThreadPoolExecutor

    private static final class MemoryAwareThreadPoolExecutor.NewThreadRunsPolicy
    extends java.lang.Object
    implements java.util.concurrent.RejectedExecutionHandler
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NewThreadRunsPolicy()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void rejectedExecution​(java.lang.Runnable r, java.util.concurrent.ThreadPoolExecutor executor)  
      • Methods inherited from class java.lang.Object

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

      • NewThreadRunsPolicy

        private NewThreadRunsPolicy()
    • Method Detail

      • rejectedExecution

        public void rejectedExecution​(java.lang.Runnable r,
                                      java.util.concurrent.ThreadPoolExecutor executor)
        Specified by:
        rejectedExecution in interface java.util.concurrent.RejectedExecutionHandler