public final class Notification extends Object
Notification
is a special message that AM send to its "agents"
to notify the occurrence of an event.Constructor and Description |
---|
Notification(Instant timestamp,
String topic,
JsonValue body)
Creates a notification that happened at
timestamp , on
the given topic with the given body . |
Modifier and Type | Method and Description |
---|---|
JsonValue |
getBody()
Returns the notification's payload.
|
Instant |
getTimestamp()
Returns the instant when the event happened on the AM server.
|
String |
getTopic()
Returns the notification's topic.
|
String |
toString() |
public Notification(Instant timestamp, String topic, JsonValue body)
timestamp
, on
the given topic
with the given body
.timestamp
- when the event was triggered on AMtopic
- category of the notificationbody
- the JSON payload (a non-null JSON object)public Instant getTimestamp()
public String getTopic()
public JsonValue getBody()
Copyright 2011-2017 ForgeRock AS.