Class AbstractNotification
- java.lang.Object
-
- fr.dyade.aaa.agent.Notification
-
- fr.dyade.aaa.agent.CallbackNotification
-
- org.objectweb.joram.mom.notifications.AbstractNotification
-
- All Implemented Interfaces:
Encodable,Serializable,Cloneable
- Direct Known Subclasses:
AbstractReplyNot,AbstractRequestNot,AdminReplyNot,AdminRequestNot
public abstract class AbstractNotification extends CallbackNotification
TheAbstractNotificationclass is the superclass of the notifications exchanged by a client agent and a MOM destination agent.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intclientContextTheclientContextfield allows a client to identify a context within which a notification is exchanged with a destination.private static longserialVersionUIDdefine serialVersionUID for interoperability, fix with 5.15.0 value-
Fields inherited from class fr.dyade.aaa.agent.Notification
detachable, detached, persistent
-
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 AbstractNotification()Constructs anAbstractNotification.AbstractNotification(int clientContext)Constructs anAbstractNotification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(Decoder decoder)Decodes the object.voidencode(Encoder encoder)Encodes the object.intgetClientContext()Returns the client context identifier.intgetEncodedSize()Returns the size of the encoded object.voidsetPersistent(boolean persistent)StringBuildertoString(StringBuilder output)Appends a string image for this object to the StringBuilder parameter.-
Methods inherited from class fr.dyade.aaa.agent.CallbackNotification
done, failed, hasCallback, passCallback, setCountDownCallback
-
Methods inherited from class fr.dyade.aaa.agent.Notification
clone, getContext, getDeadNotificationAgentId, getEncodableClassId, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability, fix with 5.15.0 value- See Also:
- Constant Field Values
-
clientContext
private int clientContext
TheclientContextfield allows a client to identify a context within which a notification is exchanged with a destination.This field is for the client use only and might not be set.
-
-
Method Detail
-
getClientContext
public int getClientContext()
Returns the client context identifier.
-
setPersistent
public void setPersistent(boolean persistent)
-
toString
public StringBuilder toString(StringBuilder output)
Appends a string image for this object to the StringBuilder parameter.- Overrides:
toStringin classNotification- Parameters:
output- buffer to fill in- Returns:
outputbuffer is returned
-
getEncodedSize
public int getEncodedSize() throws ExceptionDescription copied from class:NotificationReturns the size of the encoded object.- Specified by:
getEncodedSizein interfaceEncodable- Overrides:
getEncodedSizein classNotification- Returns:
- the size of the encoded object
- Throws:
Exception- if an error occurs
-
encode
public void encode(Encoder encoder) throws Exception
Description copied from class:NotificationEncodes the object.- Specified by:
encodein interfaceEncodable- Overrides:
encodein classNotification- Parameters:
encoder- the encoder- Throws:
Exception- if an error occurs
-
decode
public void decode(Decoder decoder) throws Exception
Description copied from class:NotificationDecodes the object.- Specified by:
decodein interfaceEncodable- Overrides:
decodein classNotification- Parameters:
decoder- the encoder- Throws:
Exception- if an error occurs
-
-