RejectedExecutionHandler
Interface RejectedExecutionHandler
- All Known Implementing Classes:
- ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
public interface RejectedExecutionHandler
A handler for tasks that cannot be executed by a ThreadPoolExecutor
.
- Since:
- 1.5
Methods
rejectedExecution
void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
Method that may b