|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.Notification
public class Notification
Class Notification is the root of the notifications hierarchy. Every notification's class has Notification as a superclass.
Field Summary | |
---|---|
private java.lang.Object |
context
Context of the notification. |
(package private) AgentId |
deadNotificationAgentId
The agentId identifying the agent to which the notification is sent when it is expired. |
protected boolean |
detachable
True if the notification is detachable, false otherwise. |
protected boolean |
detached
True if the notification is detached, false otherwise. |
(package private) long |
expiration
The expiration date for this notification. |
(package private) java.lang.String |
messageId
If the notification is stored independently that its containing message messageId contains the persistent name of this notification. |
protected boolean |
persistent
True if the notification is persistent, false otherwise. |
(package private) byte |
priority
The priority for this notification from 0 to 9, 9 being the highest. |
(package private) static long |
serialVersionUID
define serialVersionUID for interoperability |
Constructor Summary | |
---|---|
Notification()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this notification. |
java.lang.Object |
getContext()
Returns the context of the notification. |
AgentId |
getDeadNotificationAgentId()
|
long |
getExpiration()
Gets the notification's expiration value. |
java.lang.String |
getMessageId()
|
int |
getPriority()
Gets the notification's priority value. |
boolean |
isPersistent()
Return true if notification is persistent. |
void |
setContext(java.lang.Object context)
Sets the context of the notification. |
void |
setDeadNotificationAgentId(AgentId deadNotificationAgentId)
Sets the forwardExpiredNotAgentId value which enable sending expired notifications to a specific agent |
void |
setExpiration(long expiration)
Sets the expiration date for this notification. |
void |
setPriority(int priority)
Sets the priority for this notification. |
java.lang.String |
toString()
Provides a string image for this object. |
java.lang.StringBuffer |
toString(java.lang.StringBuffer output)
Appends a string image for this object to the StringBuffer parameter. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
protected transient boolean persistent
protected transient boolean detachable
protected transient boolean detached
long expiration
byte priority
AgentId deadNotificationAgentId
transient java.lang.String messageId
private java.lang.Object context
Constructor Detail |
---|
public Notification()
Method Detail |
---|
public void setExpiration(long expiration)
expiration
- the expiration date for this notification.public long getExpiration()
public void setPriority(int priority)
priority
- the priority for this notification.public int getPriority()
public java.lang.String getMessageId()
public final void setContext(java.lang.Object context)
context
- the context of the notification.public final java.lang.Object getContext()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean isPersistent()
public AgentId getDeadNotificationAgentId()
public void setDeadNotificationAgentId(AgentId deadNotificationAgentId)
deadNotificationAgentId
- the AgentId to which the dead notification is forwardedpublic java.lang.StringBuffer toString(java.lang.StringBuffer output)
output
- buffer to fill in
output
buffer is returnedpublic final java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |