public class Notification extends Object
Notification
class is a generic way to relay content through an
NotificationDispatcher
.Modifier and Type | Class and Description |
---|---|
static class |
Notification.Type
The
Notification.Type enumeration represents the type of notification being sent
to a NotificationDispatcher . |
Modifier and Type | Field and Description |
---|---|
String |
Body
The main content of the notification.
|
DispatchCallback |
Callback
An optional callback implementation that the dispatcher can use to report
success/failure on delivery.
|
List<String> |
CallbackIds
An option list of unique IDs that will identify the origins of this
notification.
|
DispatchCredentials |
Credentials
The optional credentials used to authenticate with the dispatcher.
|
Map<String,String> |
DispatchProperties
A map of all of the properties that a
NotificationDispatcher needs
in order to dispatch this notification. |
List<Recipient> |
Recipients
The optional recipients of the notification.
|
String |
Subject
A short summary of the notification.
|
Constructor and Description |
---|
Notification() |
Modifier and Type | Method and Description |
---|---|
Notification.Type |
getType()
Gets the type of notificaton.
|
String |
toString() |
public String Subject
public String Body
public List<Recipient> Recipients
public Map<String,String> DispatchProperties
NotificationDispatcher
needs
in order to dispatch this notification.public DispatchCredentials Credentials
public DispatchCallback Callback
public Notification.Type getType()
null
).Copyright © 2022 Apache Software Foundation. All rights reserved.