API reference

Message Class

Messages are response payloads created from a request. They are enqueued and popped from the queue to be handled. Messages are tied to a MessageType which corresponds to the payload model that the message contains. A message should contain the corresponding request id that it is a response to.

Member Functions

Message
( long ptr )
Returns
The error if the message is an error, null otherwise.
Returns
the payload whose type depends on the MessageType of this message.
MessageType getType ( )
long getRequestId ( )
boolean isError ( )

Protected Functions

void finalize ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon