public abstract class AbstractRequestNot extends AbstractNotification
AbstractRequest
is a request sent by a client agent to
a destination agent.Modifier and Type | Field and Description |
---|---|
private int |
requestId
The
requestId field allows a client to identify the request
sent to a destination. |
private static long |
serialVersionUID
define serialVersionUID for interoperability, fix with 5.15.0 value
|
detachable, detached, persistent
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
Constructor and Description |
---|
AbstractRequestNot()
Constructs an
AbstractRequest . |
AbstractRequestNot(int clientContext,
int requestId)
Constructs an
AbstractRequest . |
Modifier and Type | Method and Description |
---|---|
void |
decode(Decoder decoder)
Decodes the object.
|
void |
encode(Encoder encoder)
Encodes the object.
|
int |
getEncodedSize()
Returns the size of the encoded object.
|
int |
getRequestId()
Returns the request identifier.
|
StringBuffer |
toString(StringBuffer output)
Appends a string image for this object to the StringBuffer parameter.
|
getClientContext, setPersistent
done, failed, hasCallback, passCallback, setCountDownCallback
clone, getContext, getDeadNotificationAgentId, getEncodableClassId, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString
private static final long serialVersionUID
private int requestId
requestId
field allows a client to identify the request
sent to a destination.
This field is for the client use only and might not be set.
public AbstractRequestNot(int clientContext, int requestId)
AbstractRequest
.clientContext
- Identifies a client context.requestId
- Identifies the request.public AbstractRequestNot()
AbstractRequest
.public int getRequestId()
public StringBuffer toString(StringBuffer output)
toString
in class AbstractNotification
output
- buffer to fill inoutput
buffer is returnedpublic int getEncodedSize() throws Exception
Notification
getEncodedSize
in interface Encodable
getEncodedSize
in class AbstractNotification
Exception
- if an error occurspublic void encode(Encoder encoder) throws Exception
Notification
encode
in interface Encodable
encode
in class AbstractNotification
encoder
- the encoderException
- if an error occurspublic void decode(Decoder decoder) throws Exception
Notification
decode
in interface Encodable
decode
in class AbstractNotification
decoder
- the encoderException
- if an error occursCopyright © 2021 ScalAgent D.T.. All rights reserved.