Interface NotificationMessageProvider<T>
- All Superinterfaces:
Function<String,
NotificationMessage<T>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface NotificationMessageProvider<T>
extends Function<String,NotificationMessage<T>>
Provider of
NotificationMessage
(s) that can be used for creating the notifications- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptiondefault NotificationMessage<T>
createMessage
(String deliverer) Create a notification message for the provideddeliverer
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<String,
NotificationMessage<T>>
-
createMessage
Create a notification message for the provideddeliverer
- Parameters:
deliverer
- the type of the deliverer that will consume the message- Returns:
- the notification message that can be consumed by the deliverer
-