You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cs...@apache.org on 2021/02/09 09:16:47 UTC

[sling-org-apache-sling-distribution-journal-messages] branch SLING-10130 created (now fba234b)

This is an automated email from the ASF dual-hosted git repository.

cschneider pushed a change to branch SLING-10130
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal-messages.git.


      at fba234b  SLING-10130 - Allow to retrieve serverUri from MessagingProvider

This branch includes the following new commits:

     new fba234b  SLING-10130 - Allow to retrieve serverUri from MessagingProvider

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-org-apache-sling-distribution-journal-messages] 01/01: SLING-10130 - Allow to retrieve serverUri from MessagingProvider

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cschneider pushed a commit to branch SLING-10130
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal-messages.git

commit fba234b2f831f43c605f097e66d9b65b2d29444c
Author: Christian Schneider <cs...@adobe.com>
AuthorDate: Tue Feb 9 10:16:26 2021 +0100

    SLING-10130 - Allow to retrieve serverUri from MessagingProvider
---
 .../sling/distribution/journal/MessagingProvider.java       | 13 +++++++++++--
 .../org/apache/sling/distribution/journal/package-info.java |  2 +-
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/distribution/journal/MessagingProvider.java b/src/main/java/org/apache/sling/distribution/journal/MessagingProvider.java
index cf8cbbe..6b77f52 100644
--- a/src/main/java/org/apache/sling/distribution/journal/MessagingProvider.java
+++ b/src/main/java/org/apache/sling/distribution/journal/MessagingProvider.java
@@ -19,6 +19,7 @@
 package org.apache.sling.distribution.journal;
 
 import java.io.Closeable;
+import java.net.URI;
 
 public interface MessagingProvider {
 
@@ -38,5 +39,13 @@ public interface MessagingProvider {
     long retrieveOffset(String topicName, Reset reset);
 
     String assignTo(long offset);
-
-}
\ No newline at end of file
+    
+    /**
+     * Return the uri of the messaging system backend.
+     * The uri must be unique regarding the validity of per topic offsets.
+     *  
+     * @return uri
+     */
+    URI getServerUri();
+
+}
diff --git a/src/main/java/org/apache/sling/distribution/journal/package-info.java b/src/main/java/org/apache/sling/distribution/journal/package-info.java
index 1a21ae5..8f0ad89 100644
--- a/src/main/java/org/apache/sling/distribution/journal/package-info.java
+++ b/src/main/java/org/apache/sling/distribution/journal/package-info.java
@@ -16,6 +16,6 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-@org.osgi.annotation.versioning.Version("1.2.0")
+@org.osgi.annotation.versioning.Version("1.3.0")
 package org.apache.sling.distribution.journal;