Patrik’s comments: change CircuitBreaker to Runnable
was using Callable for no apparent reason; also fix FaultHandlingDocTestBase.java
This commit is contained in:
parent
e86144499c
commit
6792d11b36
5 changed files with 32 additions and 31 deletions
|
|
@ -29,10 +29,9 @@ public class DangerousJavaActor extends UntypedActor {
|
|||
this.breaker = new CircuitBreaker(
|
||||
getContext().dispatcher(), getContext().system().scheduler(),
|
||||
5, Duration.create(10, "s"), Duration.create(1, "m"))
|
||||
.onOpen(new Callable<Object>() {
|
||||
public Object call() throws Exception {
|
||||
.onOpen(new Runnable() {
|
||||
public void run() {
|
||||
notifyMeOnOpen();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue