Class ThreadPoolProviderImpl.BlockPolicy

    • Constructor Detail

      • BlockPolicy

        public BlockPolicy()
    • Method Detail

      • rejectedExecution

        public void rejectedExecution​(Runnable r,
                                      ThreadPoolExecutor e)
        Puts the Runnable to the blocking queue, effectively blocking the delegating thread until space is available.
        Specified by:
        rejectedExecution in interface RejectedExecutionHandler
        Parameters:
        r - the runnable task requested to be executed
        e - the executor attempting to execute this task