Deprecated method used in docs
Updated example code to use the alternative method provided in v2.5.0
This commit is contained in:
parent
28ae8d4f0e
commit
acbf1ce7b5
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ public class DangerousJavaActor extends AbstractActor {
|
||||||
this.breaker = new CircuitBreaker(
|
this.breaker = new CircuitBreaker(
|
||||||
getContext().dispatcher(), getContext().system().scheduler(),
|
getContext().dispatcher(), getContext().system().scheduler(),
|
||||||
5, Duration.create(10, "s"), Duration.create(1, "m"))
|
5, Duration.create(10, "s"), Duration.create(1, "m"))
|
||||||
.onOpen(this::notifyMeOnOpen);
|
.addOnOpenListener(this::notifyMeOnOpen);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void notifyMeOnOpen() {
|
public void notifyMeOnOpen() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue