消息以死信队列结束

时间:2018-06-07 18:19:13

标签: java akka router dead-letter

我有以下代码

  @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队列中结束。我做错了什么?

0 个答案:

没有答案