public abstract class AbstractNotification extends CallbackNotification
AbstractNotification
class is the superclass of the
notifications exchanged by a client agent and a MOM destination agent.Modifier and Type | Field and Description |
---|---|
private int |
clientContext
The
clientContext field allows a client to identify a context
within which a notification is exchanged with 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 |
---|
AbstractNotification()
Constructs an
AbstractNotification . |
AbstractNotification(int clientContext)
Constructs an
AbstractNotification . |
Modifier and Type | Method and Description |
---|---|
void |
decode(Decoder decoder)
Decodes the object.
|
void |
encode(Encoder encoder)
Encodes the object.
|
int |
getClientContext()
Returns the client context identifier.
|
int |
getEncodedSize()
Returns the size of the encoded object.
|
void |
setPersistent(boolean persistent) |
StringBuffer |
toString(StringBuffer output)
Appends a string image for this object to the StringBuffer parameter.
|
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 clientContext
clientContext
field 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.
public AbstractNotification(int clientContext)
AbstractNotification
.clientContext
- Identifies a client context.public AbstractNotification()
AbstractNotification
.public int getClientContext()
public void setPersistent(boolean persistent)
public StringBuffer toString(StringBuffer output)
toString
in class Notification
output
- buffer to fill inoutput
buffer is returnedpublic int getEncodedSize() throws Exception
Notification
getEncodedSize
in interface Encodable
getEncodedSize
in class Notification
Exception
- if an error occurspublic void encode(Encoder encoder) throws Exception
Notification
encode
in interface Encodable
encode
in class Notification
encoder
- the encoderException
- if an error occurspublic void decode(Decoder decoder) throws Exception
Notification
decode
in interface Encodable
decode
in class Notification
decoder
- the encoderException
- if an error occursCopyright © 2023 ScalAgent D.T.. All rights reserved.