class SaneRejectedExecutionHandler extends 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)
- Source
- ThreadPoolBuilder.scala
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- SaneRejectedExecutionHandler
- RejectedExecutionHandler
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new SaneRejectedExecutionHandler()
Value Members
-
def
rejectedExecution(runnable: Runnable, threadPoolExecutor: ThreadPoolExecutor): Unit
- Definition Classes
- SaneRejectedExecutionHandler → RejectedExecutionHandler