# What is the meaning of allButSelf in DistributedPubSubMediator

**URL:** https://discuss.akka.io/t/what-is-the-meaning-of-allbutself-in-distributedpubsubmediator/3920
**Category:** Akka Cluster
**Created:** [April 10, 2019, 9:41am UTC](https://discuss.akka.io/t/what-is-the-meaning-of-allbutself-in-distributedpubsubmediator/3920 "2019-04-10T09:41:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vksaran843](https://avatars.discourse-cdn.com/v4/letter/v/5e9695/32.png) [@vksaran843](https://discuss.akka.io/u/vksaran843)
#### Post date: [April 10, 2019, 9:41am UTC](https://discuss.akka.io/t/what-is-the-meaning-of-allbutself-in-distributedpubsubmediator/3920/1 "2019-04-10T09:41:55Z")

</div>

what is the meaning of **[allButSelf](https://doc.akka.io/japi/akka/2.3.6/akka/contrib/pattern/DistributedPubSubMediator.SendToAll.html#allButSelf())** in DistributedPubSubMediator

---

<div class="post-metadata">

### Author: ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)
#### Post date: [April 15, 2019, 10:46am UTC](https://discuss.akka.io/t/what-is-the-meaning-of-allbutself-in-distributedpubsubmediator/3920/2 "2019-04-15T10:46:32Z")

</div>

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](https://doc.akka.io/japi/akka/current/akka/cluster/pubsub/DistributedPubSubMediator.SendToAll.html) unless you explicitly want that old version.

---

<div class="post-metadata">

### Author: ![vksaran843](https://avatars.discourse-cdn.com/v4/letter/v/5e9695/32.png) [@vksaran843](https://discuss.akka.io/u/vksaran843)
#### Post date: [April 15, 2019, 11:06am UTC](https://discuss.akka.io/t/what-is-the-meaning-of-allbutself-in-distributedpubsubmediator/3920/3 "2019-04-15T11:06:27Z")

</div>

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