unb0rk akka-actor-nightly build
This means tightening types from Duration to FiniteDuration in several places; a good thing, since we replace runtime complaints by compile time errors.
This commit is contained in:
parent
4afd41f9c3
commit
251a62293a
34 changed files with 183 additions and 152 deletions
|
|
@ -27,7 +27,7 @@ public class DangerousJavaActor extends UntypedActor {
|
|||
public DangerousJavaActor() {
|
||||
this.breaker = new CircuitBreaker(
|
||||
getContext().dispatcher(), getContext().system().scheduler(),
|
||||
5, Duration.parse("10s"), Duration.parse("1m"))
|
||||
5, Duration.create(10, "s"), Duration.create(1, "m"))
|
||||
.onOpen(new Callable<Object>() {
|
||||
public Object call() throws Exception {
|
||||
notifyMeOnOpen();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue