From 2643dfa0b8dc084966911779b1aebd6f272d44bb Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 1 Apr 2017 19:33:54 +0100 Subject: [PATCH] #467 data-bus: App: add notes about this implementation of the patter --- data-bus/src/main/java/com/iluwatar/databus/App.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data-bus/src/main/java/com/iluwatar/databus/App.java b/data-bus/src/main/java/com/iluwatar/databus/App.java index 42746db98..748bb6af0 100644 --- a/data-bus/src/main/java/com/iluwatar/databus/App.java +++ b/data-bus/src/main/java/com/iluwatar/databus/App.java @@ -46,6 +46,16 @@ import java.time.LocalDateTime; * will receive the same data, the order each receives a given piece of data, is an * implementation detail.

*

Members may unsubscribe from the Data-Bus to stop receiving data.

+ *

This example of the pattern implements a Synchronous Data-Bus, meaning that + * when data is published to the Data-Bus, the publish method will not return until + * all members have received the data and returned.

+ *

The {@link DataBus} class is a Singleton.

+ *

Members of the Data-Bus must implement the {@link Member} interface.

+ *

Data to be published via the Data-Bus must implement the {@link DataType} interface.

+ *

The {@code data} package contains example {@link DataType} implementations.

+ *

The {@code members} package contains example {@link Member} implementations.

+ *

The {@link StatusMember} demonstrates using the DataBus to publish a message + * to the Data-Bus when it receives a message.

* * @author Paul Campbell (pcampbell@kemitix.net) */