!per #15644 Rename persist(seq) to persistAll

This commit is contained in:
Patrik Nordwall 2015-06-16 12:10:49 +02:00
parent 314b00053c
commit 74b97b3bd4
8 changed files with 46 additions and 19 deletions

View file

@ -101,7 +101,7 @@ class ExamplePersistentActor extends AbstractPersistentActor {
final String data = c.getData();
final Evt evt1 = new Evt(data + "-" + getNumEvents());
final Evt evt2 = new Evt(data + "-" + (getNumEvents() + 1));
persist(asList(evt1, evt2), (Evt evt) -> {
persistAll(asList(evt1, evt2), (Evt evt) -> {
state.update(evt);
if (evt.equals(evt2)) {
context().system().eventStream().publish(evt);