基于Akka集群文档,我是否希望向集群中的所有节点发布一条宽消息,除了亲自。目前,它也总是向我发送广泛的信息。
val mediator = DistributedPubSub(context.system).mediator
mediator ! Subscribe("content", self) // subscribe to the topic named "content"
mediator ! Publish("content", "msg") // sends the msg out Broad to all nodes including myself如何设置文档属性"allButSelf"?
https://doc.akka.io/docs/akka/current/distributed-pub-sub.html
发布于 2020-08-24 17:07:44
你想做什么
mediator ! DistributedPubSubMediator.Put(testActor)
mediator ! DistributedPubSubMediator.SendToAll(path, msg, allButSelf=false) // it is false by defaulthttps://stackoverflow.com/questions/63563528
复制相似问题