=doc,sam RecoveryCompleted handled by receiveRecover typo
This commit is contained in:
parent
5608abdb9a
commit
f730b60bd9
3 changed files with 8 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue