fall back to unhandled() in onReceive() in docs

This commit is contained in:
Roland 2011-12-29 20:49:26 +01:00
parent 4e3e2633a4
commit d181a35fa7
11 changed files with 30 additions and 0 deletions

View file

@ -34,6 +34,8 @@ public class CoordinatedCounter extends UntypedActor {
}
} else if ("GetCount".equals(incoming)) {
getSender().tell(count.single().get());
} else {
unhandled(incoming);
}
}
}

View file

@ -22,6 +22,8 @@ public class Coordinator extends UntypedActor {
});
//#coordinated-atomic
}
} else {
unhandled(incoming);
}
}
}