Paket | mx.messaging |
Klass | public class Producer |
Arv | Producer AbstractProducer MessageAgent EventDispatcher Object |
Underklasser | AsyncRequest |
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 <mx:Producer> tag inherits all the tag attributes of its superclass, and adds the following tag attributes:
<mx:Producer Properties defaultHeaders="No default." />
Publika egenskaper
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 | ||
subtopic : String
Provides access to the subtopic for the remote destination that the MessageAgent uses. | Producer |
Publika metoder
Metod | Definieras med | ||
---|---|---|---|
Producer()
Constructor. | Producer | ||
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 | ||
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 | ||
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 |
Skyddade metoder
Publika konstanter
Konstant | Definieras med | ||
---|---|---|---|
DEFAULT_PRIORITY : int = 4 [statisk]
The default message priority. | Producer |
Egenskapsdetaljer
subtopic | egenskap |
subtopic:String
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 subtopic for the remote destination that the MessageAgent uses.
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 subtopic():String
public function set subtopic(value:String):void
Konstruktordetaljer
Producer | () | Konstruktor |
public function Producer()
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:Producer = new Producer(); producer.destination = "NASDAQ"; var msg:AsyncMessage = new AsyncMessage(); msg.headers.operation = "UPDATE"; msg.body = {"SYMBOL":50.00}; producer.send(msg); }
Konstantdetaljer
DEFAULT_PRIORITY | Konstant |
public static const DEFAULT_PRIORITY:int = 4
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 default message priority.
Tue Jun 12 2018, 01:40 PM Z