@PublicAPI public class NotificationData<T> extends Object implements Serializable
Constructor and Description |
---|
NotificationData(SchedulerEvent eventType,
T data)
Create a new instance of NotificationData.
|
Modifier and Type | Method and Description |
---|---|
T |
getData()
Get the data.
|
SchedulerEvent |
getEventType()
Get the Type of the event.
|
String |
toString() |
public NotificationData(SchedulerEvent eventType, T data)
eventType
- the Type of the event.data
- the data contained in the notificationpublic SchedulerEvent getEventType()
public T getData()