Remove use of deprecated methods in java docs

This commit is contained in:
Christopher Batey 2018-07-25 09:38:33 +01:00
parent 50979d599c
commit 8476a90d1f
11 changed files with 18 additions and 22 deletions

View file

@ -23,11 +23,7 @@ public class TellPatternJavaActor extends AbstractActor {
this.breaker = new CircuitBreaker(
getContext().dispatcher(), getContext().system().scheduler(),
5, Duration.ofSeconds(10), Duration.ofMinutes(1))
.onOpen(new Runnable() {
public void run() {
notifyMeOnOpen();
}
});
.addOnOpenListener(this::notifyMeOnOpen);
}
public void notifyMeOnOpen() {