Paket | mx.messaging.messages |
Klass | public class AsyncMessage |
Arv | AsyncMessage AbstractMessage Object |
Implementerar | ISmallMessage |
Underklasser | AcknowledgeMessage, CommandMessage, DataMessage, ManagedRemotingMessage |
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Egenskap | Definieras med | ||
---|---|---|---|
body : Object
The body of a message contains the specific data that needs to be
delivered to the remote destination. | AbstractMessage | ||
clientId : String
The clientId indicates which MessageAgent sent the message. | AbstractMessage | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
correlationId : String
Provides access to the correlation id of the message. | AsyncMessage | ||
destination : String
The message destination. | AbstractMessage | ||
headers : Object
The headers of a message are an associative array where the key is the
header name and the value is the header value. | AbstractMessage | ||
messageId : String
The unique id for the message. | AbstractMessage | ||
timestamp : Number
Provides access to the time stamp for the message. | AbstractMessage | ||
timeToLive : Number
The time to live value of a message indicates how long the message
should be considered valid and deliverable. | AbstractMessage |
Metod | Definieras med | ||
---|---|---|---|
Constructs an instance of an AsyncMessage with an empty body and header. | AsyncMessage | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
Returnerar det angivna objektets primitiva värde. | Object |
Konstant | Definieras med | ||
---|---|---|---|
SUBTOPIC_HEADER : String = "DSSubtopic" [statisk]
Messages sent by a MessageAgent with a defined subtopic
property indicate their target subtopic in this header. | AsyncMessage |
correlationId | egenskap |
correlationId:String
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Provides access to the correlation id of the message.
Used for acknowledgement and for segmentation of messages.
The correlationId
contains the messageId
of the
previous message that this message refers to.
Implementering
public function get correlationId():String
public function set correlationId(value:String):void
Relaterade API-element
AsyncMessage | () | Konstruktor |
public function AsyncMessage(body:Object = null, headers:Object = null)
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructs an instance of an AsyncMessage with an empty body and header.
In addition to this default behavior, the body and the headers for the
message may also be passed to the constructor as a convenience.
An example of this invocation approach for the body is:
var msg:AsyncMessage = new AsyncMessage("Body text");
An example that provides both the body and headers is:
var msg:AsyncMessage = new AsyncMessage("Body text", {"customerHeader":"customValue"});
body:Object (default = null ) — The optional body to assign to the message.
| |
headers:Object (default = null ) — The optional headers to assign to the message.
|
SUBTOPIC_HEADER | Konstant |
public static const SUBTOPIC_HEADER:String = "DSSubtopic"
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Messages sent by a MessageAgent with a defined subtopic
property indicate their target subtopic in this header.
Tue Jun 12 2018, 01:40 PM Z