| Pacote | mx.messaging |
| Classe | public class Producer |
| Subclasses | AsyncRequest |
Hide MXML Syntax
The <mx:Producer> tag inherits all the tag attributes of its superclass, and adds the following tag attributes:
<mx:Producer
Properties
defaultHeaders="No default."
/>
| Propriedade | Definido por | ||
|---|---|---|---|
| subtopic : String
Provides access to the subtopic for the remote destination that the MessageAgent uses.
| Producer | ||
| Método | Definido por | ||
|---|---|---|---|
|
Producer()
Constructs a Producer.
| Producer | ||
| Método | Definido por | ||
|---|---|---|---|
| Producer | |||
| subtopic | propriedade |
subtopic:String [read-write] Provides access to the subtopic for the remote destination that the MessageAgent uses.
This property can be used as the source for data binding.
public function get subtopic():String
public function set subtopic(value:String):void
| Producer | () | Construtor |
public function Producer()
Constructs a Producer.
function sendMessage():void
{
var producer:Producer = new Producer();
producer.destination = "NASDAQ";
var msg:AsyncMessage = new AsyncMessage();
msg.headers.operation = "UPDATE";
msg.body = {"SYMBOL":50.00};
producer.send(msg);
}
| internalSend | () | método |
protected override function internalSend(message:IMessage, waitForClientId:Boolean = true):void
Parâmetros
message:IMessage |
|
waitForClientId:Boolean (default = true) |