public class QueueDelivery extends Object implements Encodable, Serializable
Modifier and Type | Field and Description |
---|---|
private AgentId |
consumerId |
private int |
contextId |
private Message |
message |
private static long |
serialVersionUID
define serialVersionUID for interoperability, fix with 5.15.0 value
|
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
Constructor and Description |
---|
QueueDelivery() |
QueueDelivery(AgentId consumerId,
int contextId,
Message message) |
Modifier and Type | Method and Description |
---|---|
void |
decode(Decoder decoder)
Decodes the content of this object
|
void |
encode(Encoder encoder)
Encodes the content of this object
|
AgentId |
getConsumerId() |
int |
getContextId() |
int |
getEncodableClassId()
Returns a unique class identifier.
|
int |
getEncodedSize()
Returns the size of the byte array that results from the encoding of this object.
|
Message |
getMessage() |
void |
setMessage(Message message) |
private static final long serialVersionUID
private AgentId consumerId
private int contextId
private transient Message message
public AgentId getConsumerId()
public int getContextId()
public Message getMessage()
public void setMessage(Message message)
public int getEncodableClassId()
Encodable
getEncodableClassId
in interface Encodable
public int getEncodedSize() throws Exception
Encodable
getEncodedSize
in interface Encodable
Exception
- if an error occurspublic void encode(Encoder encoder) throws Exception
Encodable
Copyright © 2023 ScalAgent D.T.. All rights reserved.