Pakket | mx.messaging.channels |
Klasse | public class AMFChannel |
Overerving | AMFChannel NetConnectionChannel PollingChannel Channel EventDispatcher Object |
Subklassen | SecureAMFChannel, StreamingAMFChannel |
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | 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
.
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
authenticated : Boolean [alleen-lezen]
Indicates if this channel is authenticated. | Channel | ||
channelSets : Array [alleen-lezen]
Provides access to the ChannelSets connected to the Channel. | Channel | ||
connected : Boolean [alleen-lezen]
Indicates whether this channel has established a connection to the
remote destination. | Channel | ||
connectTimeout : int
Provides access to the connect timeout in seconds for the channel. | Channel | ||
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
endpoint : String [alleen-lezen]
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 | ||
netConnection : NetConnection [alleen-lezen]
Provides access to the associated NetConnection for this Channel. | NetConnectionChannel | ||
piggybackingEnabled : Boolean
Indicates whether this channel will piggyback poll requests along
with regular outbound messages when an outstanding poll is not in
progress. | AMFChannel | ||
polling : Boolean [alleen-lezen]
Reports whether the channel is actively polling. | AMFChannel | ||
pollingEnabled : Boolean
Indicates whether this channel is enabled to poll. | AMFChannel | ||
pollingInterval : Number
Provides access to the polling interval for this Channel. | AMFChannel | ||
protocol : String [overschrijven] [alleen-lezen]
Returns the protocol for this channel (http). | AMFChannel | ||
reconnecting : Boolean [alleen-lezen]
Indicates whether this channel is in the process of reconnecting to an
alternate endpoint. | Channel | ||
recordMessageSizes : Boolean [alleen-lezen]
Channel property determines the level of performance information injection - whether
we inject message sizes or not. | Channel | ||
recordMessageTimes : Boolean [alleen-lezen]
Channel property determines the level of performance information injection - whether
we inject timestamps or not. | 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 |
Methode | Gedefinieerd door | ||
---|---|---|---|
Constructor. | AMFChannel | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt. | 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 | ||
Disables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
Disconnects the ChannelSet from the Channel. | Channel | ||
Verzendt een gebeurtenis naar de gebeurtenisstroom. | EventDispatcher | ||
Enables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis. | EventDispatcher | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
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 | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Verwijdert een listener uit het object EventDispatcher. | EventDispatcher | ||
[overschrijven]
Sends the specified message to its target destination. | PollingChannel | ||
Sets the credentials to the specified value. | Channel | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | ||
Retourneert de primitieve waarde van het opgegeven object. | Object | ||
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis. | EventDispatcher |
piggybackingEnabled | eigenschap |
piggybackingEnabled:Boolean
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates whether this channel will piggyback poll requests along with regular outbound messages when an outstanding poll is not in progress. This allows the server to piggyback data for the client along with its response to client's message.
Implementatie
public function get piggybackingEnabled():Boolean
public function set piggybackingEnabled(value:Boolean):void
polling | eigenschap |
pollingEnabled | eigenschap |
pollingEnabled:Boolean
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates whether this channel is enabled to poll.
Implementatie
public function get pollingEnabled():Boolean
public function set pollingEnabled(value:Boolean):void
pollingInterval | eigenschap |
pollingInterval:Number
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Provides access to the polling interval for this Channel. The value is in milliseconds. This value determines how often this Channel requests messages from the server, to approximate server push.
Implementatie
public function get pollingInterval():Number
public function set pollingInterval(value:Number):void
Gegenereerde uitzondering
ArgumentError — If the pollingInterval is assigned a value of 0 or
less.
|
protocol | eigenschap |
protocol:String
[alleen-lezen] [overschrijven] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Returns the protocol for this channel (http).
Implementatie
override public function get protocol():String
AMFChannel | () | Constructor |
public function AMFChannel(id:String = null, uri:String = null)
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Constructor.
Parametersid:String (default = null ) — The id of this Channel.
| |
uri:String (default = null ) — The uri for this Channel.
|
Wed Jun 13 2018, 11:42 AM Z