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