Class CallerRunsRejectOnShutdownPolicy

java.lang.Object
java.util.concurrent.ThreadPoolExecutor.AbortPolicy
org.infinispan.commons.util.concurrent.CallerRunsRejectOnShutdownPolicy
All Implemented Interfaces:
RejectedExecutionHandler

public class CallerRunsRejectOnShutdownPolicy extends ThreadPoolExecutor.AbortPolicy
A handler for rejected tasks that runs the rejected task directly in the calling thread of the execute method. If the executor was shutdown, it will instead throw a RejectedExecutionException.
Since:
10.0
Author:
wburns