Java style accessors for AbstractFSM #22592
This commit is contained in:
parent
363ca39f52
commit
07e88300bc
24 changed files with 85 additions and 58 deletions
|
|
@ -91,7 +91,7 @@ public class ActorPublisherDocTest extends AbstractJavaTest {
|
|||
}
|
||||
})
|
||||
.match(ActorPublisherMessage.Request.class, request -> deliverBuf())
|
||||
.match(ActorPublisherMessage.Cancel.class, cancel -> getContext().stop(self()))
|
||||
.match(ActorPublisherMessage.Cancel.class, cancel -> getContext().stop(getSelf()))
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ public class RecipeGlobalRateLimit extends RecipeTest {
|
|||
releaseWaiting();
|
||||
})
|
||||
.match(WantToPass.class, wtp -> {
|
||||
waitQueue.add(sender());
|
||||
waitQueue.add(getSender());
|
||||
})
|
||||
.build();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue