Java style accessors for AbstractFSM #22592

This commit is contained in:
Johan Andrén 2017-03-17 10:18:15 +01:00
parent 363ca39f52
commit 07e88300bc
24 changed files with 85 additions and 58 deletions

View file

@ -179,7 +179,7 @@ public class ActorSubscriberDocTest extends AbstractJavaTest {
})
.match(ActorSubscriberMessage.onCompleteInstance().getClass(), complete -> {
if (queue.isEmpty()) {
getContext().stop(self());
getContext().stop(getSelf());
}
})
.match(WorkerPoolProtocol.Reply.class, reply -> {
@ -187,7 +187,7 @@ public class ActorSubscriberDocTest extends AbstractJavaTest {
queue.get(id).tell(WorkerPoolProtocol.done(id), getSelf());
queue.remove(id);
if (canceled() && queue.isEmpty()) {
getContext().stop(self());
getContext().stop(getSelf());
}
})
.build();