Package org.jgroups.util
Class ShutdownRejectedExecutionHandler
- java.lang.Object
-
- org.jgroups.util.ShutdownRejectedExecutionHandler
-
- All Implemented Interfaces:
java.util.concurrent.RejectedExecutionHandler
public class ShutdownRejectedExecutionHandler extends java.lang.Object implements java.util.concurrent.RejectedExecutionHandler
ShutdownRejectedExecutionHandler is a decorator RejectedExecutionHandler used in all JGroups ThreadPoolExecutor(s). Default RejectedExecutionHandler raises RuntimeException when a task is submitted to ThreadPoolExecutor that has been shutdown. ShutdownRejectedExecutionHandler instead logs only a warning message.- Author:
- Vladimir Blagojevic
- See Also:
ThreadPoolExecutor
,14:49:05 belaban Exp $
-
-
Constructor Summary
Constructors Constructor Description ShutdownRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
rejectedExecution(java.lang.Runnable r, java.util.concurrent.ThreadPoolExecutor executor)
-