4

我有以下演员层次结构:

演员层次结构

receiver负责处理 HTTP 请求。当一个请求到来时,这个actor创建一个子actor coordinator(实际上是一个动态的名字)。

coordinator完成它的工作后它执行Context.Stop(Self)。这优雅地停止了所有孩子,但随后我在控制台中收到以下消息:

[INFO][23.05.2016 08:48:45][Thread 0013][akka://FSharpSystem/user/receiver/$b] 消息 DeathWatchNotification 从 akka://FSharpSystem/user/receiver/$b 到 akka:/ /FSharpSystem/user/receiver/$b 未交付。遇到 1 个死信。

[INFO][23.05.2016 08:48:45][Thread 0013][akka://FSharpSystem/user/receiver/$b] 消息 DeathWatchNotification 从 akka://FSharpSystem/user/receiver/$b 到 akka:/ /FSharpSystem/user/receiver/$b 未交付。遇到 2 个死信。

[INFO][23.05.2016 08:48:45][Thread 0013][akka://FSharpSystem/user/receiver/$b] 消息 DeathWatchNotification 从 akka://FSharpSystem/user/receiver/$b 到 akka:/ /FSharpSystem/user/receiver/$b 未交付。遇到 3 个死信。

看起来所有三个参与者都将 a 发送DeathWatchNotificationcoordinator($b 是它的动态名称)。我没有订阅此通知,也不想在日志中看到它。如何禁用此行为(最好在 F# 中)?

PS 这是带有示例代码的要点

4

0 回答 0