Class SharedExecutor.CallerRunsPolicy

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

    public static final class SharedExecutor.CallerRunsPolicy
    extends java.lang.Object
    implements java.util.concurrent.RejectedExecutionHandler
    • Method Summary

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

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

      • CallerRunsPolicy

        public CallerRunsPolicy()
    • Method Detail

      • rejectedExecution

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