Skip to content

Commit c96ebcb

Browse files
committed
iluwatar#467 data-bus: App: add description of the pattern
1 parent b72d545 commit c96ebcb

File tree

1 file changed

+11
-0
lines changed
  • data-bus/src/main/java/com/iluwatar/databus

1 file changed

+11
-0
lines changed

data-bus/src/main/java/com/iluwatar/databus/App.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@
3535
* The Data Bus pattern
3636
* <p>
3737
* <p>{@see http://wiki.c2.com/?DataBusPattern}</p>
38+
* <p>
39+
* <p>The Data-Bus pattern provides a method where different parts of an application may
40+
* pass messages between each other without needing to be aware of the other's existence.</p>
41+
* <p>Similar to the {@code ObserverPattern}, members register themselves with the {@link DataBus}
42+
* and may then receive each piece of data that is published to the Data-Bus. The member
43+
* may react to any given message or not.</p>
44+
* <p>It allows for Many-to-Many distribution of data, as there may be any number of
45+
* publishers to a Data-Bus, and any number of members receiving the data. All members
46+
* will receive the same data, the order each receives a given piece of data, is an
47+
* implementation detail.</p>
48+
* <p>Members may unsubscribe from the Data-Bus to stop receiving data.</p>
3849
*
3950
* @author Paul Campbell (pcampbell@kemitix.net)
4051
*/

0 commit comments

Comments
 (0)