Added trapExceptions to declarative supervisor configuration
This commit is contained in:
parent
174ca6a63c
commit
741a3c2b8c
15 changed files with 50 additions and 41 deletions
|
|
@ -17,7 +17,7 @@ public class PersistentStateTest extends TestCase {
|
|||
protected void setUp() {
|
||||
PersistenceManager.init();
|
||||
conf.configure(
|
||||
new RestartStrategy(new AllForOne(), 3, 5000),
|
||||
new RestartStrategy(new AllForOne(), 3, 5000, new Class[] {Exception.class}),
|
||||
new Component[] {
|
||||
new Component(PersistentStateful.class, new LifeCycle(new Permanent()), 10000000),
|
||||
new Component(PersistentFailer.class, new LifeCycle(new Permanent()), 1000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue