@Service public class CommunicationServiceImpl extends Object implements ICommunicationService
ICommunicationService implementation.| Constructor and Description |
|---|
CommunicationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStatusMessage(String messageId)
Check for existence of status message for a message with
messageId. |
Optional<MessageStatusBean> |
popStatusMessage(String messageId)
Get information about
status of message with messageId and delete it. |
String |
pushMessage(MessageBean message)
Push a message to dispatch asynchronously.
|
public Optional<MessageStatusBean> popStatusMessage(String messageId)
status of message with messageId and delete it.popStatusMessage in interface ICommunicationServicemessageId - The message id returned by ICommunicationService.pushMessage(MessageBean) or by #sendMessage(MessageBean)Optional.empty() if no message record exists with the indicated messageIdpublic boolean isStatusMessage(String messageId)
messageId.isStatusMessage in interface ICommunicationServicemessageId - The message id of the associated messagemessageId and false if notpublic String pushMessage(MessageBean message)
pushMessage in interface ICommunicationServicemessage - The message to sendCopyright © 2021 Albirar. All rights reserved.