Class BlockingRejectedExecutionHandler

  • All Implemented Interfaces:
    java.util.concurrent.RejectedExecutionHandler

    public class BlockingRejectedExecutionHandler
    extends java.lang.Object
    implements java.util.concurrent.RejectedExecutionHandler
    A handler for rejected tasks that runs the task if the current thread is a blocking thread otherwise it rejects the task.
    Since:
    10.1
    Author:
    wburns
    • Method Detail

      • getInstance

        public static java.util.concurrent.RejectedExecutionHandler getInstance()
      • rejectedExecution

        public void rejectedExecution​(java.lang.Runnable r,
                                      java.util.concurrent.ThreadPoolExecutor executor)