Class SaneRejectedExecutionHandler

java.lang.Object
org.apache.pekko.dispatch.SaneRejectedExecutionHandler
All Implemented Interfaces:
RejectedExecutionHandler

public class SaneRejectedExecutionHandler extends Object implements 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)