Added trapExceptions to declarative supervisor configuration
This commit is contained in:
parent
72eda9780f
commit
7b1bae36a8
15 changed files with 50 additions and 41 deletions
|
|
@ -20,7 +20,7 @@ import org.atmosphere.cpr.BroadcastFilter
|
|||
class Boot {
|
||||
val factory = SupervisorFactory(
|
||||
SupervisorConfig(
|
||||
RestartStrategy(OneForOne, 3, 100),
|
||||
RestartStrategy(OneForOne, 3, 100, List(classOf[Exception])),
|
||||
Supervise(
|
||||
new SimpleService,
|
||||
LifeCycle(Permanent)) ::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue