Inheritance diagram for Message:
Public Member Functions | |
Object | create () |
char[] | getGuid () |
void | setReply (char[] channel) |
char[] | getReply () |
bool | isReplyExpected () |
void | read (IReader reader) |
void | write (IWriter writer) |
Object | create (IReader reader) |
Private Member Functions | |
void | destroy () |
ulong | getTime () |
void | setTime (ulong time) |
Private Attributes | |
char[] | reply |
void read (IReader reader) { super.read (reader); reader.get (myAttribute1); reader.get (myAttribute2); reader.get (myAttribute3); } void write (IWriter writer) { super.write (writer); writer.put (myAttribute1); writer.put (myAttribute2); writer.put (myAttribute3); }
You should do it this way so that your Message can be deserialized as a superclass instance (if ever necessary).
Definition at line 80 of file Message.d.
|
Overridable create method that simply instantiates a new instance. May be used to allocate subclassses from a freelist Reimplemented from Payload. Reimplemented in NullMessage, and Task. |
|
Return the guid for this payload. This should be unique per payload class, if said class is used in conjunction with the clustering facilities. Inspected by the Pickle utilitiy classes. Reimplemented from Payload. Reimplemented in NullMessage, and Task. |
|
Reimplemented from IMessage. Definition at line 109 of file Message.d. References reply. |
|
Reimplemented from IMessage. Definition at line 118 of file Message.d. References reply. |
|
Definition at line 127 of file Message.d. References reply. |
|
Recover the reply-channel from the provided reader Reimplemented from Payload. Reimplemented in Task. Definition at line 138 of file Message.d. References IReader::get(), and reply. |
|
Emit our reply-channel to the provided writer Reimplemented from Payload. Reimplemented in Task. Definition at line 150 of file Message.d. References IWriter::put(), and reply. |
|
Create a new instance of a payload, and populate it via read() using the specified reader Reimplemented from Payload. Reimplemented in Task. |
|
Destroy this payload. Often used to return instances to a freelist, or otherwise release resources. Reimplemented from IPayload. Reimplemented in QueuedEntry, InvalidatorPayload, and ClusterEntry. |
|
Return the timestamp associated with this payload Reimplemented from IPayload. Definition at line 71 of file Payload.d. References Payload::time. Referenced by ChannelCache::lockWhereInvalid(). |
|
Set the timestamp of this payload Reimplemented from IPayload. |
|
Definition at line 82 of file Message.d. Referenced by getReply(), isReplyExpected(), read(), setReply(), and write(). |