| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessagingService
The KCB MessagingService provides an API to deliver messages to arbitrary multiple endpoints.
| Method Summary | |
|---|---|
|  Long | deliver(MessageDTO message)Delivers a message | 
|  void | remove(long messageId,
             String user,
             String cause)Removes a specific message and all deliveries | 
|  Long | removeByOriginId(String originId,
                                 String user,
                                 String cause)Removes a specific message and all deliveries. | 
| Method Detail | 
|---|
Long deliver(MessageDTO message)
             throws MessageDeliveryException,
                    RiceIllegalArgumentException
message - message to deliver
MessageDeliveryException - if unable to deliver message.
RiceIllegalArgumentException - if the message is null.
void remove(long messageId,
            String user,
            String cause)
            throws MessageDismissalException,
                   RiceIllegalArgumentException
messageId - id of the message to removeuser - the user under which the action was takencause - the cause or action taken to remove the message
MessageDismissalException - if no message for the given messageId is found.
RiceIllegalArgumentException - if user, cause is null.
Long removeByOriginId(String originId,
                      String user,
                      String cause)
                      throws MessageDismissalException,
                             RiceIllegalArgumentException
originId - origin id of the message to removeuser - the user under which the action was takencause - the cause or action taken to remove the message
MessageDismissalException - if no message for the given messageId is found.
RiceIllegalArgumentException - if originId is null| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||