Class PayaraNotificationBuilder
- java.lang.Object
-
- fish.payara.internal.notification.PayaraNotificationBuilder
-
public class PayaraNotificationBuilder extends Object
A builder object created by aPayaraNotificationFactoryused to configure Notifications for sending.- Author:
- Matthew Gill
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPayaraNotificationBuilder(String hostName, String domainName, String instanceName, String serverName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PayaraNotificationBuilderblacklist(String... notifierNames)Add a list of notifiers to the non-receiver list for this notification.PayaraNotificationbuild()PayaraNotificationBuilderdata(Serializable data)PayaraNotificationBuildereventType(String eventType)PayaraNotificationBuildermessage(String message)PayaraNotificationBuildersubject(String subject)PayaraNotificationBuilderwhitelist(String... notifierNames)Add a list of notifiers to the receiver list for this notification.
-
-
-
Method Detail
-
subject
public PayaraNotificationBuilder subject(String subject)
-
message
public PayaraNotificationBuilder message(String message)
-
data
public PayaraNotificationBuilder data(Serializable data)
-
eventType
public PayaraNotificationBuilder eventType(String eventType)
-
whitelist
public PayaraNotificationBuilder whitelist(String... notifierNames)
Add a list of notifiers to the receiver list for this notification. Calling this method with an empty list will mean that no notifier receives the message.- Parameters:
notifierNames- a list of notifiers to receive this notification- Returns:
- the builder object
-
blacklist
public PayaraNotificationBuilder blacklist(String... notifierNames)
Add a list of notifiers to the non-receiver list for this notification. Calling this method with an empty list will have no effect.- Parameters:
notifierNames- a list of notifiers to receive this notification- Returns:
- the builder object
-
build
public PayaraNotification build()
-
-