public class CallerRunsPolicy extends Object implements RejectedExecutionHandler
ThreadPoolExecutor.CallerRunsPolicy
.ThreadPoolExecutor.CallerRunsPolicy
Constructor and Description |
---|
CallerRunsPolicy() |
public void rejectedExecution(Runnable runnable, ThreadPoolExecutor threadPoolExecutor)
rejectedExecution
in interface RejectedExecutionHandler
ThreadPoolExecutor.CallerRunsPolicy.rejectedExecution(
Runnable, java.util.concurrent.ThreadPoolExecutor)