Paquete | mx.messaging |
Clase | public class Producer |
Herencia | Producer AbstractProducer MessageAgent EventDispatcher Object |
Subclases | AsyncRequest |
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 <mx:Producer> tag inherits all the tag attributes of its superclass, and adds the following tag attributes:
<mx:Producer Properties defaultHeaders="No default." />
Propiedades públicas
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 | ||
subtopic : String
Provides access to the subtopic for the remote destination that the MessageAgent uses. | Producer |
Métodos públicos
Método | Definido por | ||
---|---|---|---|
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
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | ||
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 | ||
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 |
Métodos protegidos
Eventos
Constantes públicas
Constante | Definido por | ||
---|---|---|---|
DEFAULT_PRIORITY : int = 4 [estática]
The default message priority. | Producer |
Información sobre propiedades
subtopic | propiedad |
subtopic:String
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 subtopic for the remote destination that the MessageAgent uses.
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 subtopic():String
public function set subtopic(value:String):void
Información sobre constructores
Producer | () | Información sobre |
public function Producer()
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:Producer = new Producer(); producer.destination = "NASDAQ"; var msg:AsyncMessage = new AsyncMessage(); msg.headers.operation = "UPDATE"; msg.body = {"SYMBOL":50.00}; producer.send(msg); }
Información sobre constantes
DEFAULT_PRIORITY | Constante |
public static const DEFAULT_PRIORITY:int = 4
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 default message priority.
Tue Jun 12 2018, 02:12 PM Z