What is the meaning of allButSelf in DistributedPubSubMediator

(Vikas Saran) #1

what is the meaning of allButSelf in DistributedPubSubMediator

(Johan Andrén) #2

If set to true it means that the message should be published to all other nodes but not on the node where it was sent (if there are any local subscribers, that is).

Note that the linked API is Akka 2.3.6 which was end-of-life a long long time ago. Make sure you are looking at the current docs at https://doc.akka.io/japi/akka/current/akka/cluster/pubsub/DistributedPubSubMediator.SendToAll.html unless you explicitly want that old version.

(Vikas Saran) #3

Thanks @johanandren !!! we are using 2.5.18. that was just for reference.