Package com.atlassian.confluence.event
Class MonitorableCallerRunsPolicy
- java.lang.Object
-
- java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
-
- com.atlassian.confluence.event.MonitorableCallerRunsPolicy
-
- All Implemented Interfaces:
RejectedExecutionHandler
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 events- Since:
- 5.5
-
-
Constructor Summary
Constructors Constructor Description MonitorableCallerRunsPolicy(DurationChecker durationChecker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
rejectedExecution(Runnable r, ThreadPoolExecutor e)
-
-
-
Constructor Detail
-
MonitorableCallerRunsPolicy
public MonitorableCallerRunsPolicy(DurationChecker durationChecker)
-
-
Method Detail
-
rejectedExecution
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
- Specified by:
rejectedExecution
in interfaceRejectedExecutionHandler
- Overrides:
rejectedExecution
in classThreadPoolExecutor.CallerRunsPolicy
-
-