=doc,sam RecoveryCompleted handled by receiveRecover typo

This commit is contained in:
Pavel Zalunin 2014-07-03 03:59:46 +03:00
parent 5608abdb9a
commit f730b60bd9
3 changed files with 8 additions and 7 deletions

View file

@ -146,14 +146,14 @@ public class LambdaPersistenceDocTest {
@Override public PartialFunction<Object, BoxedUnit> receiveRecover() {
return ReceiveBuilder.
match(RecoveryCompleted.class, r -> {
recoveryCompleted();
}).
match(String.class, this::handleEvent).build();
}
@Override public PartialFunction<Object, BoxedUnit> receiveCommand() {
return ReceiveBuilder.
match(RecoveryCompleted.class, r -> {
recoveryCompleted();
}).
match(String.class, s -> s.equals("cmd"),
s -> persist("evt", this::handleEvent)).build();
}