Pakket | mx.messaging.messages |
Klasse | public class AsyncMessage |
Overerving | AsyncMessage AbstractMessage Object |
Implementatie | ISmallMessage |
Subklassen | AcknowledgeMessage, CommandMessage, DataMessage, ManagedRemotingMessage |
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
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
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | 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 |
Methode | Gedefinieerd door | ||
---|---|---|---|
Constructs an instance of an AsyncMessage with an empty body and header. | AsyncMessage | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
Constante | Gedefinieerd door | ||
---|---|---|---|
SUBTOPIC_HEADER : String = "DSSubtopic" [statisch]
Messages sent by a MessageAgent with a defined subtopic
property indicate their target subtopic in this header. | AsyncMessage |
correlationId | eigenschap |
correlationId:String
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | 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.
Implementatie
public function get correlationId():String
public function set correlationId(value:String):void
Verwante API-elementen
AsyncMessage | () | Constructor |
public function AsyncMessage(body:Object = null, headers:Object = null)
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | 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 | Constante |
public static const SUBTOPIC_HEADER:String = "DSSubtopic"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Messages sent by a MessageAgent with a defined subtopic
property indicate their target subtopic in this header.
Wed Jun 13 2018, 11:42 AM Z