| Package | mx.messaging |
| Class | public class MultiTopicProducer |
The MultiTopicProducer will dispatch a MessageAckEvent or MessageFaultEvent for each message they send depending upon whether the outbound message was sent and processed successfully or not.
| Property | Defined By | ||
|---|---|---|---|
| subtopics : ArrayCollection
Provides access to the list of subtopics used in publishing any messages
| MultiTopicProducer | ||
| Method | Defined By | ||
|---|---|---|---|
|
Constructs a Producer.
| MultiTopicProducer | ||
|
Adds a subtopic to the current list of subtopics for messages sent by this
producer.
| MultiTopicProducer | ||
|
Removes the subtopic from the subtopics property.
| MultiTopicProducer | ||
| Method | Defined By | ||
|---|---|---|---|
| MultiTopicProducer | |||
| subtopics | property |
subtopics:ArrayCollection [read-write] Provides access to the list of subtopics used in publishing any messages
This property can be used as the source for data binding.
public function get subtopics():ArrayCollection
public function set subtopics(value:ArrayCollection):void
| MultiTopicProducer | () | Constructor |
public function MultiTopicProducer()
Constructs a Producer.
function sendMessage():void
{
var producer:MultiTopicProducer = new MultiTopicProducer();
producer.destination = "NASDAQ";
var msg:AsyncMessage = new AsyncMessage();
msg.headers.operation = "UPDATE";
msg.body = {"SYMBOL":50.00};
// only send to subscribers to subtopic "SYMBOL" and "ALLSTOCKS"
msg.addSubtopic("SYMBOL");
msg.addSubtopic("ALLSTOCKS");
producer.send(msg);
}
| addSubtopic | () | method |
public function addSubtopic(subtopic:String):void
Adds a subtopic to the current list of subtopics for messages sent by this producer. This is a shortcut to adding this subtopic to the subtopics property.
Parameters
subtopic:String |
| internalSend | () | method |
protected override function internalSend(message:IMessage, waitForClientId:Boolean = true):void
Parameters
message:IMessage |
|
waitForClientId:Boolean (default = true) |
| removeSubtopic | () | method |
public function removeSubtopic(subtopic:String):void
Removes the subtopic from the subtopics property. Throws an error if the subtopic is not in the list.
Parameters
subtopic:String |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/mx/messaging/MultiTopicProducer.html