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

olli pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-messaging.git

commit dab3ef2a0fa897ad7d5e7d7a7858a3c22c76d2ea
Author: Oliver Lietz <o...@apache.org>
AuthorDate: Fri Feb 14 17:53:36 2020 +0100

    SLING-5643 Provide a simple messaging API
    
    Add type parameter for result
---
 .../java/org/apache/sling/commons/messaging/MessageService.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/commons/messaging/MessageService.java 
b/src/main/java/org/apache/sling/commons/messaging/MessageService.java
index 05aa79e..c7d7646 100644
--- a/src/main/java/org/apache/sling/commons/messaging/MessageService.java
+++ b/src/main/java/org/apache/sling/commons/messaging/MessageService.java
@@ -24,12 +24,12 @@ import org.jetbrains.annotations.NotNull;
 import org.osgi.annotation.versioning.ProviderType;
 
 @ProviderType
-public interface MessageService<T> {
+public interface MessageService<T, S> {
 
     /**
      * @param message the message to send
-     * @return the sent message
+     * @return the result of send operation
      */
-    CompletableFuture<T> sendMessage(@NotNull final T message);
+    @NotNull CompletableFuture<S> sendMessage(@NotNull final T message);
 
 }

Reply via email to