Paket | mx.messaging |
Klass | public class MultiTopicProducer |
Arv | MultiTopicProducer AbstractProducer MessageAgent EventDispatcher Object |
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 |
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.
Egenskap | Definieras med | ||
---|---|---|---|
authenticated : Boolean [skrivskyddad]
Indicates if this MessageAgent is using an authenticated connection to
its destination. | MessageAgent | ||
autoConnect : Boolean
If true the Producer automatically connects to its destination the
first time the send() method is called. | AbstractProducer | ||
channelSet : ChannelSet
Provides access to the ChannelSet used by the MessageAgent. | MessageAgent | ||
clientId : String [skrivskyddad]
Provides access to the client id for the MessageAgent. | MessageAgent | ||
connected : Boolean [skrivskyddad]
Indicates whether this MessageAgent is currently connected to its
destination via its ChannelSet. | MessageAgent | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
defaultHeaders : Object
The default headers to apply to messages sent by the Producer. | AbstractProducer | ||
destination : String
Provides access to the destination for the MessageAgent. | MessageAgent | ||
priority : int
The default message priority for the messages sent by the Producer. | AbstractProducer | ||
reconnectAttempts : int
The number of reconnect attempts that the Producer makes in the event
that the destination is unavailable or the connection to the destination closes. | AbstractProducer | ||
reconnectInterval : int
The number of milliseconds between reconnect attempts. | AbstractProducer | ||
requestTimeout : int
Provides access to the request timeout in seconds for sent messages. | MessageAgent | ||
subtopics : ArrayCollection
Provides access to the list of subtopics used in publishing any messages
| MultiTopicProducer |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | MultiTopicProducer | ||
Invoked by a MessageResponder upon receiving a result for a sent
message. | MessageAgent | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Adds a subtopic to the current list of subtopics for messages sent by this
producer. | MultiTopicProducer | ||
Handles a CONNECT ChannelEvent. | MessageAgent | ||
Handles a DISCONNECT ChannelEvent. | MessageAgent | ||
Handles a ChannelFaultEvent. | MessageAgent | ||
Connects the Producer to its target destination. | AbstractProducer | ||
[åsidosätt]
Disconnects the Producer from its remote destination. | AbstractProducer | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Invoked by a MessageResponder upon receiving a fault for a sent message. | MessageAgent | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Returns true if there are any pending requests for the passed in message. | MessageAgent | ||
Called after the implementing object has been created
and all properties specified on the tag have been assigned. | MessageAgent | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Logs the MessageAgent out from its remote destination. | MessageAgent | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Removes the subtopic from the subtopics property. | MultiTopicProducer | ||
Sends the specified message to its destination. | AbstractProducer | ||
Sets the credentials that the MessageAgent uses to authenticate to
destinations. | MessageAgent | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Sets the remote credentials that will be passed through to the remote destination
for authenticating to secondary systems. | MessageAgent | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
subtopics | egenskap |
subtopics:ArrayCollection
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 list of subtopics used in publishing any messages
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get subtopics():ArrayCollection
public function set subtopics(value:ArrayCollection):void
MultiTopicProducer | () | Konstruktor |
public function MultiTopicProducer()
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 |
Constructor.
Exempel ( Så här använder du exemplet )
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 | () | metod |
public function addSubtopic(subtopic:String):void
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 |
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.
Parametrar
subtopic:String — The subtopic to add to the current list of
subtopics sent by this producer.
|
removeSubtopic | () | metod |
public function removeSubtopic(subtopic:String):void
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 |
Removes the subtopic from the subtopics property. Throws an error if the subtopic is not in the list.
Parametrar
subtopic:String — The subtopic to remove from the subtopics property.
|
Tue Jun 12 2018, 01:40 PM Z