Package org.apache.pekko.dispatch
Class SaneRejectedExecutionHandler
java.lang.Object
org.apache.pekko.dispatch.SaneRejectedExecutionHandler
- All Implemented Interfaces:
RejectedExecutionHandler
The RejectedExecutionHandler used by Akka, it improves on CallerRunsPolicy
by throwing a RejectedExecutionException if the executor isShutdown.
(CallerRunsPolicy silently discards the runnable in this case, which is arguably broken)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrejectedExecution(Runnable runnable, ThreadPoolExecutor threadPoolExecutor)
-
Constructor Details
-
SaneRejectedExecutionHandler
public SaneRejectedExecutionHandler()
-
-
Method Details
-
rejectedExecution
- Specified by:
rejectedExecutionin interfaceRejectedExecutionHandler
-