Package org.objectweb.joram.mom.dest
Class QueueDelivery
- java.lang.Object
-
- org.objectweb.joram.mom.dest.QueueDelivery
-
- All Implemented Interfaces:
Encodable,Serializable
public class QueueDelivery extends Object implements Encodable, Serializable
Class describing a delivered message waiting for acknowledge. The Queue class maintains a table of delivered messages.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private AgentIdconsumerIdprivate intcontextIdprivate Messagemessageprivate static longserialVersionUIDdefine serialVersionUID for interoperability, fix with 5.15.0 value-
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 QueueDelivery()QueueDelivery(AgentId consumerId, int contextId, Message message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(Decoder decoder)Decodes the content of this objectvoidencode(Encoder encoder)Encodes the content of this objectAgentIdgetConsumerId()intgetContextId()intgetEncodableClassId()Returns a unique class identifier.intgetEncodedSize()Returns the size of the byte array that results from the encoding of this object.MessagegetMessage()voidsetMessage(Message message)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability, fix with 5.15.0 value- See Also:
- Constant Field Values
-
consumerId
private AgentId consumerId
-
contextId
private int contextId
-
message
private transient Message message
-
-
Method Detail
-
getConsumerId
public AgentId getConsumerId()
-
getContextId
public int getContextId()
-
getMessage
public Message getMessage()
-
setMessage
public void setMessage(Message message)
-
getEncodableClassId
public int getEncodableClassId()
Description copied from interface:EncodableReturns a unique class identifier.- Specified by:
getEncodableClassIdin interfaceEncodable- Returns:
- a unique class identifier
-
getEncodedSize
public int getEncodedSize() throws ExceptionDescription copied from interface:EncodableReturns the size of the byte array that results from the encoding of this object.- Specified by:
getEncodedSizein interfaceEncodable- Returns:
- the size of the encoded byte array
- Throws:
Exception- if an error occurs
-
encode
public void encode(Encoder encoder) throws Exception
Description copied from interface:EncodableEncodes the content of this object
-
-