Class AsyncMessage
- java.lang.Object
-
- org.red5.compatibility.flex.messaging.messages.AbstractMessage
-
- org.red5.compatibility.flex.messaging.messages.AsyncMessage
-
- All Implemented Interfaces:
Serializable,Message
- Direct Known Subclasses:
AcknowledgeMessage,AsyncMessageExt,CommandMessage,DataMessage,ErrorMessage,SequencedMessage
public class AsyncMessage extends AbstractMessage
Base class for for asynchronous Flex compatibility messages.- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de), Paul Gregoire (mondain@gmail.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static byteCORRELATION_ID_BYTES_FLAGprotected static byteCORRELATION_ID_FLAGStringcorrelationIdId of message this message belongs to.protected byte[]correlationIdBytes-
Fields inherited from class org.red5.compatibility.flex.messaging.messages.AbstractMessage
body, clientId, clientIdBytes, destination, headers, messageId, messageIdBytes, timestamp, timeToLive
-
Fields inherited from interface org.red5.compatibility.flex.messaging.messages.Message
DESTINATION_CLIENT_ID_HEADER, ENDPOINT_HEADER, FLEX_CLIENT_ID_HEADER, MESSAGING_VERSION, NEEDS_CONFIG_HEADER, POLL_WAIT_HEADER, PRESERVE_DURABLE_HEADER, REMOTE_CREDENTIALS_HEADER, REMOVE_SUBSCRIPTIONS, SELECTOR_HEADER, SUBSCRIPTION_INVALIDATED_HEADER, SUBTOPIC_SEPARATOR, SYNC_HEADER
-
-
Constructor Summary
Constructors Constructor Description AsyncMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddParameters(StringBuilder result)Add message properties to string.StringgetCorrelationId()voidreadExternal(IDataInput in)voidsetCorrelationId(String id)voidwriteExternal(IDataOutput output)-
Methods inherited from class org.red5.compatibility.flex.messaging.messages.AbstractMessage
getBody, getClientId, getDestination, getHeader, getHeaders, getMessageId, getTimestamp, getTimeToLive, headerExists, readFlags, setBody, setClientId, setDestination, setHeader, setHeaders, setMessageId, setTimestamp, setTimeToLive, toString
-
-
-
-
Field Detail
-
CORRELATION_ID_FLAG
protected static byte CORRELATION_ID_FLAG
-
CORRELATION_ID_BYTES_FLAG
protected static byte CORRELATION_ID_BYTES_FLAG
-
correlationId
public String correlationId
Id of message this message belongs to.
-
correlationIdBytes
protected byte[] correlationIdBytes
-
-
Method Detail
-
addParameters
protected void addParameters(StringBuilder result)
Add message properties to string.- Overrides:
addParametersin classAbstractMessage- Parameters:
result-StringBuilderto add properties to
-
setCorrelationId
public void setCorrelationId(String id)
-
getCorrelationId
public String getCorrelationId()
-
readExternal
public void readExternal(IDataInput in)
- Overrides:
readExternalin classAbstractMessage
-
writeExternal
public void writeExternal(IDataOutput output)
- Overrides:
writeExternalin classAbstractMessage
-
-