|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectakka.dispatch.SaneRejectedExecutionHandler
public class SaneRejectedExecutionHandler
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 | |
|---|---|
SaneRejectedExecutionHandler()
|
|
| Method Summary | |
|---|---|
void |
rejectedExecution(java.lang.Runnable runnable,
java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SaneRejectedExecutionHandler()
| Method Detail |
|---|
public void rejectedExecution(java.lang.Runnable runnable,
java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
rejectedExecution in interface java.util.concurrent.RejectedExecutionHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||