public abstract class Notification extends Object implements TimeoutObject, Comparable
Constructor and Description |
---|
Notification(Object topic,
String message,
NotificationType type) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Compare the notification to the given object.
|
String |
getMessage()
Get the message describing this notification.
|
Object |
getTopic()
Return the topic the notification is related to
|
NotificationType |
getType() |
void |
timeout()
the timeout is elapsed
|
String |
toString() |
protected Object topic
public Notification(Object topic, String message, NotificationType type)
graph
- the Graph the notification is associated tomessage
- the message of the notificationtype
- the type of the notification. See constants on Notification class.public Object getTopic()
public String getMessage()
public void timeout()
TimeoutObject
timeout
in interface TimeoutObject
public NotificationType getType()
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- the object to compareCopyright © 2005–2020. All rights reserved.