Class AbstractRequestNot
- java.lang.Object
-
- fr.dyade.aaa.agent.Notification
-
- fr.dyade.aaa.agent.CallbackNotification
-
- org.objectweb.joram.mom.notifications.AbstractNotification
-
- org.objectweb.joram.mom.notifications.AbstractRequestNot
-
- All Implemented Interfaces:
Encodable,Serializable,Cloneable
- Direct Known Subclasses:
AbortReceiveRequest,AcknowledgeRequest,BrowseRequest,ClientMessages,DenyRequest,ReceiveRequest,RequestGroupNot,SubscribeRequest,UnsubscribeRequest
public abstract class AbstractRequestNot extends AbstractNotification
AnAbstractRequestis a request sent by a client agent to a destination agent.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intrequestIdTherequestIdfield allows a client to identify the request sent to 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 AbstractRequestNot()Constructs anAbstractRequest.AbstractRequestNot(int clientContext, int requestId)Constructs anAbstractRequest.
-
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.intgetEncodedSize()Returns the size of the encoded object.intgetRequestId()Returns the request identifier.StringBuildertoString(StringBuilder output)Appends a string image for this object to the StringBuilder parameter.-
Methods inherited from class org.objectweb.joram.mom.notifications.AbstractNotification
getClientContext, setPersistent
-
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
-
requestId
private int requestId
TherequestIdfield allows a client to identify the request sent to a destination.This field is for the client use only and might not be set.
-
-
Constructor Detail
-
AbstractRequestNot
public AbstractRequestNot(int clientContext, int requestId)Constructs anAbstractRequest.- Parameters:
clientContext- Identifies a client context.requestId- Identifies the request.
-
AbstractRequestNot
public AbstractRequestNot()
Constructs anAbstractRequest.
-
-
Method Detail
-
getRequestId
public int getRequestId()
Returns the request identifier.
-
toString
public StringBuilder toString(StringBuilder output)
Appends a string image for this object to the StringBuilder parameter.- Overrides:
toStringin classAbstractNotification- 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 classAbstractNotification- 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 classAbstractNotification- 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 classAbstractNotification- Parameters:
decoder- the encoder- Throws:
Exception- if an error occurs
-
-