From 7dba4435e41e76f6245bb5da332c15530600a6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Endre=20S=C3=A1ndor=20Varga?= Date: Tue, 2 Jul 2013 12:11:50 +0200 Subject: [PATCH] =doc: Document that EventBus do not preserve sender #2918 --- akka-docs/rst/java/event-bus.rst | 6 ++++++ akka-docs/rst/scala/event-bus.rst | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/akka-docs/rst/java/event-bus.rst b/akka-docs/rst/java/event-bus.rst index 58675715f4..08d3930590 100644 --- a/akka-docs/rst/java/event-bus.rst +++ b/akka-docs/rst/java/event-bus.rst @@ -21,6 +21,12 @@ implementing a simple interface: according to the specific bus (see `Classifiers`_) and then published to all subscribers for the obtained classifier +.. note:: + + Please note that the EventBus does not preserve the sender of the + published messages. If you need a reference to the original sender + you have to provide it inside the message. + This mechanism is used in different places within Akka, e.g. the :ref:`DeathWatch ` and the `Event Stream`_. Implementations can make use of the specific building blocks presented below. diff --git a/akka-docs/rst/scala/event-bus.rst b/akka-docs/rst/scala/event-bus.rst index a8e1262a90..ee58fc8852 100644 --- a/akka-docs/rst/scala/event-bus.rst +++ b/akka-docs/rst/scala/event-bus.rst @@ -22,6 +22,12 @@ implementing a simple interface: according to the specific bus (see `Classifiers`_) and then published to all subscribers for the obtained classifier +.. note:: + + Please note that the EventBus does not preserve the sender of the + published messages. If you need a reference to the original sender + you have to provide it inside the message. + This mechanism is used in different places within Akka, e.g. the :ref:`DeathWatch ` and the `Event Stream`_. Implementations can make use of the specific building blocks presented below.