我有以下代码
@Override
public void onReceive(Object msg) throws Exception {
if (msg instanceof newRequest) {
ActorRef childRouter =
getContext()
.actorOf(
new SmallestMailboxPool(actorPoolSize)
.props(Props.create(ChildActor.class, param)),
"childActor");
childActor.tell(new someOtherMessage(), getSelf());
}
当收到newRequest
消息时,它会被处理,但是子actor从不接收someOtherMessage()
,someOtherMessage
总是在deadltter队列中结束。我做错了什么?