public interface DeliveryContext<T>
Modifier and Type | Method and Description |
---|---|
Optional<NotificationMessage<T>> |
getMessage(String deliverer)
The message that needs to be sent with it's payload for the provided
deliverer . |
Notification |
getNotification()
The information for sending the information.
|
String |
getRecipientId()
The id of the user that needs to receive the message
|
boolean |
isMessageDelivered()
Whether a message has already been delivered.
|
void |
setMessageDelivered(boolean messageDelivered)
Set whether the message has been delivered
|
Optional<NotificationMessage<T>> getMessage(String deliverer)
deliverer
.Notification getNotification()
String getRecipientId()
boolean isMessageDelivered()
MessageDeliverer
(s) in order to decide whether a message needs to be sent.void setMessageDelivered(boolean messageDelivered)
messageDelivered
- flag marking that the message has been delivered