Package fr.dyade.aaa.agent
Class ExpiredNot
- java.lang.Object
-
- fr.dyade.aaa.agent.Notification
-
- fr.dyade.aaa.agent.ExpiredNot
-
- All Implemented Interfaces:
Encodable,Serializable,Cloneable
public class ExpiredNot extends Notification
The ExpiredNot holds an expired notification (timeout) which is sent to the previously specified deadNotificationAgent.
-
-
Field Summary
Fields Modifier and Type Field Description private NotificationexpiredNotThe expiration which had expired.private AgentIdfromThe agent which sent the expired notification.private static longserialVersionUIDDefine serialVersionUID for interoperability.private AgentIdtoThe destination agent of the expired notification.-
Fields inherited from class fr.dyade.aaa.agent.Notification
deadNotificationAgentId, detachable, detached, expiration, messageId, persistent, priority
-
Fields inherited from interface fr.dyade.aaa.common.encoding.Encodable
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
-
-
Constructor Summary
Constructors Constructor Description ExpiredNot(Notification expiredNot, AgentId from, AgentId to)Builds a notification carrying an expired notification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationgetExpiredNot()AgentIdgetFromAgentId()AgentIdgetToAgentId()-
Methods inherited from class fr.dyade.aaa.agent.Notification
clone, decode, encode, getContext, getDeadNotificationAgentId, getEncodableClassId, getEncodedSize, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Define serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
expiredNot
private Notification expiredNot
The expiration which had expired.
-
from
private AgentId from
The agent which sent the expired notification.
-
to
private AgentId to
The destination agent of the expired notification.
-
-
Constructor Detail
-
ExpiredNot
public ExpiredNot(Notification expiredNot, AgentId from, AgentId to)
Builds a notification carrying an expired notification.- Parameters:
expiredNot- The expiration which had expired.from- The agent which sent the expired notification.to- The destination agent of the expired notification.
-
-
Method Detail
-
getFromAgentId
public AgentId getFromAgentId()
- Returns:
- The agent which sent the expired notification.
-
getToAgentId
public AgentId getToAgentId()
- Returns:
- The destination agent of the expired notification.
-
getExpiredNot
public Notification getExpiredNot()
- Returns:
- The notification which had expired.
-
-