套件 | mx.messaging.messages |
類別 | public class AsyncMessage |
繼承 | AsyncMessage AbstractMessage Object |
實作 | ISmallMessage |
子類別 | AcknowledgeMessage, CommandMessage, DataMessage, ManagedRemotingMessage |
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
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
類別物件的參照或是特定物件實體的建構函數。 | 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 |
方法 | 定義自 | ||
---|---|---|---|
Constructs an instance of an AsyncMessage with an empty body and header. | AsyncMessage | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
會傳回指定之物件的基本值。 | Object |
常數 | 定義自 | ||
---|---|---|---|
SUBTOPIC_HEADER : String = "DSSubtopic" [靜態]
Messages sent by a MessageAgent with a defined subtopic
property indicate their target subtopic in this header. | AsyncMessage |
correlationId | 屬性 |
correlationId:String
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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.
實作
public function get correlationId():String
public function set correlationId(value:String):void
相關 API 元素
AsyncMessage | () | 建構函式 |
public function AsyncMessage(body:Object = null, headers:Object = null)
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const SUBTOPIC_HEADER:String = "DSSubtopic"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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, 03:47 PM Z