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