public class TopicForwardNot extends CallbackNotification
TopicForwardNot
is a notification sent by a topic to
another topic part of the same cluster, or to its hierarchical father,
and holding a forwarded ClientMessages
notification.Modifier and Type | Class and Description |
---|---|
static class |
TopicForwardNot.Factory |
Modifier and Type | Field and Description |
---|---|
boolean |
fromCluster
true if the notification is destinated to a hierarchical
father. |
ClientMessages |
messages
The forwarded messages.
|
private static long |
serialVersionUID |
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 |
---|
TopicForwardNot() |
TopicForwardNot(ClientMessages messages,
boolean fromCluster)
Constructs a
TopicForwardNot instance. |
Modifier and Type | Method and Description |
---|---|
void |
decode(Decoder decoder)
Decodes the object.
|
void |
encode(Encoder encoder)
Encodes the object.
|
int |
getEncodableClassId()
The class id is still not defined.
|
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, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString
private static final long serialVersionUID
public boolean fromCluster
true
if the notification is destinated to a hierarchical
father.public ClientMessages messages
public TopicForwardNot()
public TopicForwardNot(ClientMessages messages, boolean fromCluster)
TopicForwardNot
instance.messages
- Notification to forward.fromCluster
- true
if the notification is coming
from a cluster friend.public void setPersistent(boolean persistent)
public int getEncodableClassId()
Notification
getEncodableClassId
in interface Encodable
getEncodableClassId
in class Notification
public 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 occurspublic StringBuffer toString(StringBuffer output)
Notification
toString
in class Notification
output
- buffer to fill inoutput
buffer is returnedCopyright © 2018 ScalAgent D.T.. All Rights Reserved.