Patrik’s comments: change CircuitBreaker to Runnable

was using Callable for no apparent reason; also fix
FaultHandlingDocTestBase.java
This commit is contained in:
Roland 2012-10-16 14:38:23 +02:00
parent e86144499c
commit 6792d11b36
5 changed files with 32 additions and 31 deletions

View file

@ -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;
}
});
}