Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
mx.messaging.channels 

PollingChannel  - AS3 BlazeDS LCDS

Paquetemx.messaging.channels
Clasepublic class PollingChannel
HerenciaPollingChannel Inheritance Channel Inheritance EventDispatcher Inheritance Object
Subclases HTTPChannel, NetConnectionChannel

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 PollingChannel class provides the polling behavior that all polling channels in the messaging system require.



Propiedades públicas
 PropiedadDefinido por
 Inheritedauthenticated : Boolean
[solo lectura] Indicates if this channel is authenticated.
Channel
 InheritedchannelSets : Array
[solo lectura] Provides access to the ChannelSets connected to the Channel.
Channel
 Inheritedconnected : Boolean
[solo lectura] Indicates whether this channel has established a connection to the remote destination.
Channel
 InheritedconnectTimeout : int
Provides access to the connect timeout in seconds for the channel.
Channel
 Inheritedconstructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada.
Object
 Inheritedendpoint : String
[solo lectura] Provides access to the endpoint for this channel.
Channel
 InheritedfailoverURIs : Array
Provides access to the set of endpoint URIs that this channel can attempt to failover to if the endpoint is clustered.
Channel
 Inheritedid : String
Provides access to the id of this channel.
Channel
 Inheritedprotocol : String
[solo lectura] Provides access to the protocol that the channel uses.
Channel
 Inheritedreconnecting : Boolean
[solo lectura] Indicates whether this channel is in the process of reconnecting to an alternate endpoint.
Channel
 InheritedrecordMessageSizes : Boolean
[solo lectura] Channel property determines the level of performance information injection - whether we inject message sizes or not.
Channel
 InheritedrecordMessageTimes : Boolean
[solo lectura] Channel property determines the level of performance information injection - whether we inject timestamps or not.
Channel
 InheritedrequestTimeout : int
Provides access to the default request timeout in seconds for the channel.
Channel
 Inheriteduri : String
Provides access to the URI used to create the whole endpoint URI for this channel.
Channel
Propiedades protegidas
 PropiedadDefinido por
 InheritedshouldBeConnected : Boolean
[solo lectura] Indicates whether this channel should be connected to its endpoint.
Channel
Métodos públicos
 MétodoDefinido por
  
PollingChannel(id:String = null, uri:String = null)
Creates a new PollingChannel instance with the specified id.
PollingChannel
 Inherited
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
 Inherited
Subclasses should override this method to apply any settings that may be necessary for an individual channel.
Channel
 Inherited
connect(channelSet:ChannelSet):void
Connects the ChannelSet to the Channel.
Channel
  
Disables polling based on the number of times enablePolling() and disablePolling() have been invoked.
PollingChannel
 Inherited
Disconnects the ChannelSet from the Channel.
Channel
 Inherited
Distribuye un evento en el flujo del evento.
EventDispatcher
  
Enables polling based on the number of times enablePolling() and disablePolling() have been invoked.
PollingChannel
 Inherited
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento.
EventDispatcher
 Inherited
Indica si un objeto tiene definida una propiedad especificada.
Object
 Inherited
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro.
Object
 Inherited
Sends a CommandMessage to the server to logout if the Channel is connected.
Channel
  
Initiates a poll operation if there are consumers subscribed to this channel, and polling is enabled for this channel.
PollingChannel
 Inherited
Indica si existe la propiedad especificada y si es enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Elimina un detector del objeto EventDispatcher.
EventDispatcher
  
send(agent:MessageAgent, message:IMessage):void
[override] Sends the specified message to its target destination.
PollingChannel
 Inherited
setCredentials(credentials:String, agent:MessageAgent = null, charset:String = null):void
Sets the credentials to the specified value.
Channel
 Inherited
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle.
Object
 Inherited
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional.
Object
 Inherited
Devuelve la representación de cadena del objeto especificado.
Object
 Inherited
Devuelve el valor simple del objeto especificado.
Object
 Inherited
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
 MétodoDefinido por
 Inherited
Applies the client load balancing urls if they exists.
Channel
 Inherited
Processes a failed internal connect and dispatches the FAULT event for the channel.
Channel
 Inherited
Processes a successful internal connect and dispatches the CONNECT event for the Channel.
Channel
 Inherited
Handles a connect timeout by dispatching a ChannelFaultEvent.
Channel
 Inherited
Processes a failed internal disconnect and dispatches the FAULT event for the channel.
Channel
 Inherited
disconnectSuccess(rejected:Boolean = false):void
Processes a successful internal disconnect and dispatches the DISCONNECT event for the Channel.
Channel
 Inherited
Handles a change to the guard condition for managing initial Channel connect for the application.
Channel
 Inherited
Returns the appropriate MessageResponder for the Channel's send() method.
Channel
 Inherited
Connects the Channel to its endpoint.
Channel
 Inherited
internalDisconnect(rejected:Boolean = false):void
Disconnects the Channel from its endpoint.
Channel
 Inherited
Sends the Message out over the Channel and routes the response to the responder.
Channel
Eventos
 Evento Resumen Definido por
 Inherited[evento broadcast] Se distribuye cuando Flash Player o AIR pasan a estar activos.EventDispatcher
 InheritedDispatched after the channel has connected to its endpoint.Channel
 InheritedDispatched after the channel has disconnected from its endpoint.Channel
 InheritedDispatched after the channel has faulted.Channel
 Inherited[evento broadcast] Se distribuye cuando Flash Player o de AIR pasan a estar inactivos.EventDispatcher
 InheritedDispatched when a channel receives a message from its endpoint.Channel
 InheritedDispatched when a property of the channel changes.Channel
Constantes protegidas
 ConstanteDefinido por
  LOGIN_AFTER_DISCONNECT : String = "login-after-disconnect"
[estática]
PollingChannel
  PIGGYBACKING_ENABLED : String = "piggybacking-enabled"
[estática]
PollingChannel
  POLLING_INTERVAL_LEGACY : String = "polling-interval-seconds"
[estática]
PollingChannel
  POLLING_INTERVAL_MILLIS : String = "polling-interval-millis"
[estática]
PollingChannel
Información sobre constructores

PollingChannel

()Información sobre
public function PollingChannel(id:String = null, uri:String = null)

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

Creates a new PollingChannel instance with the specified id. Once a PollingChannel is connected and begins polling, it will issue a poll request once every three seconds by default.

Note: The PollingChannel type should not be constructed directly. Instead create instances of protocol specific subclasses such as HTTPChannel or AMFChannel that extend it.

Parámetros
id:String (default = null) — The id of this Channel.
 
uri:String (default = null) — The uri for this Channel.
Información sobre métodos

disablePolling

()método
public function disablePolling():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

Disables polling based on the number of times enablePolling() and disablePolling() have been invoked. If the net result is to disable polling the channel stops polling.

Invoked automatically based upon subscribing or unsubscribing from a remote destination over a PollingChannel.

enablePolling

()método 
public function enablePolling():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

Enables polling based on the number of times enablePolling() and disablePolling() have been invoked. If the net result is to enable polling the channel will poll the server on behalf of connected MessageAgents.

Invoked automatically based upon subscribing or unsubscribing from a remote destination over a PollingChannel.

poll

()método 
public function poll():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

Initiates a poll operation if there are consumers subscribed to this channel, and polling is enabled for this channel. Note that this method will not start a new poll if one is currently in progress.

send

()método 
override public function send(agent:MessageAgent, message:IMessage):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

Sends the specified message to its target destination. Subclasses must override the internalSend() method to perform the actual send. PollingChannel will wrap outbound messages in poll requests if a poll is not currently outstanding.

Parámetros

agent:MessageAgent — The MessageAgent that is sending the message.
 
message:IMessage — The Message to send.


Emite
InvalidDestinationError — If neither the MessageAgent nor the message specify a destination.
Información sobre constantes

LOGIN_AFTER_DISCONNECT

Constante
protected static const LOGIN_AFTER_DISCONNECT:String = "login-after-disconnect"

PIGGYBACKING_ENABLED

Constante 
protected static const PIGGYBACKING_ENABLED:String = "piggybacking-enabled"

POLLING_INTERVAL_LEGACY

Constante 
protected static const POLLING_INTERVAL_LEGACY:String = "polling-interval-seconds"

POLLING_INTERVAL_MILLIS

Constante 
protected static const POLLING_INTERVAL_MILLIS:String = "polling-interval-millis"





[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.