commit | 4ae7ce15c88d0575605cbc27e5167a552ad130ca | [log] [tgz] |
---|---|---|
author | Oliver Lietz <olli@apache.org> | Fri Apr 08 09:43:50 2016 +0000 |
committer | Oliver Lietz <olli@apache.org> | Fri Apr 08 09:43:50 2016 +0000 |
tree | 2265a14c593b9d8f93ca7d558a4c64ade97beba9 | |
parent | fa4a478a76328c3d0febbbff43c883c8e8728810 [diff] |
SLING-5643 Provide a simple messaging API * use CompletableFuture instead of Future * remove Failure git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1738225 13f79535-47bb-0310-9956-ffa450edef68
Simple API for sending messages to recipients.
MessageService
send(String, String)
- takes a message and a recipient, e.g.send(String, String, Map)
- takes a message, a recipient and additional data useful for the underlying implementation to process and/or send the messageResult<T>
getMessage():T
- should return a serialized form of the sent message