Class NotificationEvent<TPayload extends NotificationEventPayload>
java.lang.Object
de.xima.fc.notification.mgmt.event.NotificationEvent<TPayload>
- Type Parameters:
TPayload- The type of the payload, which must extend `NotificationPayload`.
- All Implemented Interfaces:
Serializable
public final class NotificationEvent<TPayload extends NotificationEventPayload>
extends Object
implements Serializable
Represents a notification event with a payload of type `TPayload`.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationEvent(NotificationEventType eventType, TPayload payload) Creates a newNotificationEventinstance. -
Method Summary
-
Constructor Details
-
NotificationEvent
Creates a newNotificationEventinstance.- Parameters:
eventType- The event typepayload- The payload of the event, can be null.
-
-
Method Details
-
getPayload
-
getCreationTime
The timestamp when the event was created. -
getEventType
The event type -
equals
-
hashCode
-
toString
-