API reference
API reference
Select your platform
No SDKs available
No versions available

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.

Constructors

Message ( ptr )
Signature
com.meta.horizon.platform.ovr.Message.Message(long ptr)
Parameters
ptr: long

Protected Methods

finalize ()
Signature
void com.meta.horizon.platform.ovr.Message.finalize()
Returns
void

Methods

getError ()
Signature
Error com.meta.horizon.platform.ovr.Message.getError()
Returns
Error  The error if the message is an error, null otherwise.
getPayload ()
Signature
Object com.meta.horizon.platform.ovr.Message.getPayload()
Returns
Object  the payload whose type depends on the MessageType of this message.
getRequestId ()
Signature
long com.meta.horizon.platform.ovr.Message.getRequestId()
Returns
long
getType ()
Signature
MessageType com.meta.horizon.platform.ovr.Message.getType()
isError ()
Signature
boolean com.meta.horizon.platform.ovr.Message.isError()
Returns
boolean

Inner Class

MessageType Class