clean up and stabilization, getting ready for M1
This commit is contained in:
parent
6a65c67ca7
commit
95d598fb66
119 changed files with 1839 additions and 5140 deletions
19
samples-java/src/main/java/sample/java/Boot.java
Normal file
19
samples-java/src/main/java/sample/java/Boot.java
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package sample.java;
|
||||
|
||||
import se.scalablesolutions.akka.kernel.config.ActiveObjectManager;
|
||||
import static se.scalablesolutions.akka.kernel.config.JavaConfig.*;
|
||||
|
||||
public class Boot {
|
||||
final private ActiveObjectManager manager = new ActiveObjectManager();
|
||||
|
||||
public Boot() throws Exception {
|
||||
manager.configure(
|
||||
new RestartStrategy(new OneForOne(), 3, 5000),
|
||||
new Component[] {
|
||||
new Component(
|
||||
sample.java.SimpleService.class,
|
||||
new LifeCycle(new Permanent(), 1000),
|
||||
1000)
|
||||
}).supervise();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue