Paquete | mx.messaging |
Clase | public class MultiTopicProducer |
Herencia | MultiTopicProducer AbstractProducer MessageAgent EventDispatcher Object |
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Propiedad | Definido por | ||
---|---|---|---|
authenticated : Boolean [solo lectura]
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 [solo lectura]
Provides access to the client id for the MessageAgent. | MessageAgent | ||
connected : Boolean [solo lectura]
Indicates whether this MessageAgent is currently connected to its
destination via its ChannelSet. | MessageAgent | ||
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | 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 |
Método | Definido por | ||
---|---|---|---|
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
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | 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 | ||
[override]
Disconnects the Producer from its remote destination. | AbstractProducer | ||
Distribuye un evento en el flujo del evento. | EventDispatcher | ||
Invoked by a MessageResponder upon receiving a fault for a sent message. | MessageAgent | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | ||
Indica si un objeto tiene definida una propiedad especificada. | 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 | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Logs the MessageAgent out from its remote destination. | MessageAgent | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Elimina un detector del objeto EventDispatcher. | 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 | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Sets the remote credentials that will be passed through to the remote destination
for authenticating to secondary systems. | MessageAgent | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher |
subtopics | propiedad |
subtopics:ArrayCollection
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Provides access to the list of subtopics used in publishing any messages
Esta propiedad se puede utilizar como origen para la vinculación de datos. Cuando se modifica esta propiedad, distribuye el evento propertyChange
.
Implementación
public function get subtopics():ArrayCollection
public function set subtopics(value:ArrayCollection):void
MultiTopicProducer | () | Información sobre |
public function MultiTopicProducer()
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Constructor.
Ejemplo ( Cómo utilizar este ejemplo )
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 | () | método |
public function addSubtopic(subtopic:String):void
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Parámetros
subtopic:String — The subtopic to add to the current list of
subtopics sent by this producer.
|
removeSubtopic | () | método |
public function removeSubtopic(subtopic:String):void
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Removes the subtopic from the subtopics property. Throws an error if the subtopic is not in the list.
Parámetros
subtopic:String — The subtopic to remove from the subtopics property.
|
Tue Jun 12 2018, 02:12 PM Z