Pacote | mx.messaging.channels |
Classe | public class AMFChannel |
Herança | AMFChannel ![]() ![]() ![]() ![]() ![]() |
Subclasses | SecureAMFChannel, StreamingAMFChannel |
Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
The AMFChannel relies on network services native to Flash Player and AIR, and exposed to ActionScript by the NetConnection class. This channel uses NetConnection exclusively, and creates a new NetConnection per instance.
Channels are created within the framework using the
ServerConfig.getChannel()
method. Channels can be constructed
directly and assigned to a ChannelSet if desired.
Channels represent a physical connection to a remote endpoint. Channels are shared across destinations by default. This means that a client targetting different destinations may use the same Channel to communicate with these destinations.
When used in polling mode, this Channel polls the server for new messages
based on the polling-interval-seconds
property in the configuration file,
and this can be changed by setting the pollingInterval
property.
The default value is 3 seconds.
To enable polling, the channel must be connected and the polling-enabled
property in the configuration file must be set to true
, or the
pollingEnabled
property of the Channel must be set to true
.
Propriedade | Definido por | ||
---|---|---|---|
![]() | authenticated : Boolean [somente leitura]
Indicates if this channel is authenticated. | Channel | |
![]() | constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | |
![]() | endpoint : String [somente leitura]
Provides access to the endpoint for this channel. | Channel | |
![]() | failoverURIs : Array
Provides access to the set of endpoint URIs that this channel can
attempt to failover to if the endpoint is clustered. | Channel | |
![]() | id : String
Provides access to the id of this channel. | Channel | |
![]() | reconnecting : Boolean [somente leitura]
Indicates whether this channel is in the process of reconnecting to an
alternate endpoint. | Channel | |
![]() | requestTimeout : int
Provides access to the default request timeout in seconds for the
channel. | Channel | |
![]() | uri : String
Provides access to the URI used to create the whole endpoint URI for this channel. | Channel |
Método | Definido por | ||
---|---|---|---|
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento. | EventDispatcher | |
![]() |
Subclasses should override this method to apply any settings that may be
necessary for an individual channel. | Channel | |
![]() |
Connects the ChannelSet to the Channel. | Channel | |
![]() |
Disconnects the ChannelSet from the Channel. | Channel | |
![]() |
Envia um evento para o fluxo de eventos. | EventDispatcher | |
![]() |
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento. | EventDispatcher | |
![]() |
Indica se um objeto tem uma propriedade especificada definida. | Object | |
![]() |
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | |
![]() |
Sends a CommandMessage to the server to logout if the Channel is connected. | Channel | |
![]() |
Indica se a propriedade especificada existe e é enumerável. | Object | |
![]() |
Remove um ouvinte do objeto EventDispatcher. | EventDispatcher | |
![]() |
Sets the credentials to the specified value. | Channel | |
![]() |
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | |
![]() |
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | |
![]() |
Retorna a representação de string do objeto especificado. | Object | |
![]() |
Retorna o valor primitivo do objeto especificado. | Object | |
![]() |
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado. | EventDispatcher |
Wed Jun 13 2018, 11:10 AM Z