public class MonitorableCallerRunsPolicy extends ThreadPoolExecutor.CallerRunsPolicy
ThreadPoolExecutor.CallerRunsPolicy
implementation which logs messages
if there are no more threads or queue slots available to process all eventsConstructor and Description |
---|
MonitorableCallerRunsPolicy(DurationChecker durationChecker) |
Modifier and Type | Method and Description |
---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e) |
public MonitorableCallerRunsPolicy(DurationChecker durationChecker)
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution
in interface RejectedExecutionHandler
rejectedExecution
in class ThreadPoolExecutor.CallerRunsPolicy
Copyright © 2003–2020 Atlassian. All rights reserved.