Merge pull request #24562 from rch/patch-1

Deprecated method used in docs
This commit is contained in:
Patrik Nordwall 2018-02-19 10:37:32 +01:00 committed by GitHub
commit 11366ddac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ public class DangerousJavaActor extends AbstractActor {
this.breaker = new CircuitBreaker(
getContext().dispatcher(), getContext().system().scheduler(),
5, Duration.create(10, "s"), Duration.create(1, "m"))
.onOpen(this::notifyMeOnOpen);
.addOnOpenListener(this::notifyMeOnOpen);
}
public void notifyMeOnOpen() {