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