@FunctionalInterface public interface NotificationMessageProvider<T> extends Function<String,NotificationMessage<T>>
NotificationMessage
(s) that can be used for creating the notificationsModifier and Type | Method and Description |
---|---|
default NotificationMessage<T> |
apply(String deliverer) |
NotificationMessage<T> |
createMessage(String deliverer)
Create a notification message for the provided
deliverer |
default NotificationMessage<T> apply(String deliverer)
apply
in interface Function<String,NotificationMessage<T>>
NotificationMessage<T> createMessage(String deliverer)
deliverer
deliverer
- the type of the deliverer that will consume the message