aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] cschneider closed pull request #13: Extend documentation of ordering guarantees
Date Sat, 05 Jan 2019 11:47:31 GMT
cschneider closed pull request #13: Extend documentation of ordering guarantees
URL: https://github.com/apache/aries-journaled-events/pull/13
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/Messaging.java
b/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/Messaging.java
index 0d9da2d..ccde8ed 100644
--- a/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/Messaging.java
+++ b/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/Messaging.java
@@ -26,6 +26,11 @@
     /**
      * Send a message to a topic. When this method returns the message 
      * is safely persisted.
+     *
+     * Messages can be consumed by subscribing to the topic via the #subscribe method.
+     *
+     * Two messages sent sequentially to the same topic by the same
+     * thread, are guaranteed to be consumed in the same order by all subscribers.
      */
     void send(String topic, Message message);
 
diff --git a/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/Seek.java
b/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/Seek.java
index e47853b..3dd8757 100644
--- a/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/Seek.java
+++ b/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/Seek.java
@@ -21,5 +21,14 @@
  * Starting position when no Position is available 
  */
 public enum Seek {
-    earliest, latest;
+
+    /**
+     * Seek to the first position (happened the earliest) on a topic.
+     */
+    earliest,
+
+    /**
+     * Seek to the last position (happened the latest) on a topic.
+     */
+    latest;
 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message