Pakiet | mx.messaging |
Klasa | public class AdvancedChannelSet |
Dziedziczenie | AdvancedChannelSet ChannelSet EventDispatcher Object |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Domyślna właściwość MXMLchannels
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
authenticated : Boolean [tylko do odczytu]
Indicates whether the ChannelSet has an underlying Channel that successfully
authenticated with its endpoint. | ChannelSet | ||
channelIds : Array [tylko do odczytu]
The ids of the Channels used by the ChannelSet. | ChannelSet | ||
channels : Array
Provides access to the Channels in the ChannelSet. | ChannelSet | ||
clustered : Boolean
Indicates whether the ChannelSet targets a clustered destination. | ChannelSet | ||
connected : Boolean [tylko do odczytu]
Indicates whether the ChannelSet is connected. | ChannelSet | ||
constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | ||
currentChannel : Channel [tylko do odczytu]
Returns the current Channel for the ChannelSet. | ChannelSet | ||
heartbeatInterval : int
The number of milliseconds between heartbeats sent to the remote
host while this ChannelSet is actively connected but idle. | ChannelSet | ||
initialDestinationId : String
Provides access to the initial destination this ChannelSet is used to access. | ChannelSet | ||
messageAgents : Array [tylko do odczytu]
Provides access to the set of MessageAgents that use this ChannelSet. | ChannelSet | ||
reliableReconnectDuration : int
The duration in milliseconds that channels within the AdvancedChannelSet will
attempt to reconnect in a reliable fashion to the remote endpoint they
where previous connected to, before advancing to the normal automatic
failover and protocol fallback algorithm. | AdvancedChannelSet |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
Constructs an AdvancedChannelSet. | AdvancedChannelSet | ||
Adds a Channel to the ChannelSet. | ChannelSet | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | ||
Handles a CONNECT ChannelEvent and redispatches the event. | ChannelSet | ||
Handles a DISCONNECT ChannelEvent and redispatches the event. | ChannelSet | ||
Handles a ChannelFaultEvent and redispatches the event. | ChannelSet | ||
Connects a MessageAgent to the ChannelSet. | ChannelSet | ||
Disconnects a specific MessageAgent from the ChannelSet. | ChannelSet | ||
Disconnects all associated MessageAgents and disconnects any underlying Channel that
is connected. | ChannelSet | ||
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | ||
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | ||
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | ||
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | ||
Authenticates the ChannelSet with the server using the provided credentials. | ChannelSet | ||
Logs the ChannelSet out from the server. | ChannelSet | ||
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | ||
Removes a Channel from the ChannelSet. | ChannelSet | ||
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | ||
Sends a message from a MessageAgent over the currently connected Channel. | ChannelSet | ||
Stores the credentials and passes them through to every connected channel. | ChannelSet | ||
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | ||
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | ||
[przesłanianie]
Returns a String containing the ids of the Channels in the ChannelSet. | ChannelSet | ||
Zwraca pierwotną wartość dla określonego obiektu. | Object | ||
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher |
Stała | Zdefiniowane przez | ||
---|---|---|---|
MAX_REPLY_FETCH_INTERVAL_MILLIS : int = 30000 [statyczny]
Constant value for the upper limit for fetch interval. | AdvancedChannelSet | ||
START : String = "start" [statyczny]
Special header value to instruct a client to start measuring it's rate. | AdvancedChannelSet | ||
STOP : String = "stop" [statyczny]
Special header value to instruct a client to stop measuring it's rate. | AdvancedChannelSet |
Stała | Zdefiniowane przez | ||
---|---|---|---|
ADAPTIVE_FREQUENCY_DESTINATION : String = "_DSAF" [statyczny]
Special value of a destination using adaptive frequency. | AdvancedChannelSet |
reliableReconnectDuration | właściwość |
public var reliableReconnectDuration:int
The duration in milliseconds that channels within the AdvancedChannelSet will attempt to reconnect in a reliable fashion to the remote endpoint they where previous connected to, before advancing to the normal automatic failover and protocol fallback algorithm. The default value, 0, triggers a single reliable reconnect attempt. Assigned values must be 0 or greater and for any value larger than 0, in the event of a network disconnect, attempts will be made to re-establish the pre-existing reliable connection for the specified time duration in milliseconds.
Zgłasza
RangeError — If a negative value is assigned.
|
AdvancedChannelSet | () | Konstruktor |
public function AdvancedChannelSet(channelIds:Array = null, clusteredWithURLLoadBalancing:Boolean = false)
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constructs an AdvancedChannelSet.
If the channelIds
argument is provided, the AdvancedChannelSet will
use automatically configured Channels obtained via ServerConfig.getChannel()
to reach a destination.
Attempting to manually assign Channels to an AdvancedChannelSet that uses configured
Channels is not allowed.
If the channelIds
argument is not provided or is null,
Channels must be manually created and added to the AdvancedChannelSet in order
to connect and send messages.
If the AdvancedChannelSet is clustered using url-load-balancing (where each server declares a unique RTMP or HTTP URL and the client fails over from one URL to the next), the first time that a Channel in the ChannelSet successfully connects the AdvancedChannelSet will automatically make a request for all of the endpoints across the cluster for all member Channels and will assign these failover URLs to each respective Channel. This allows Channels in the ChannelSet to failover individually, and when failover options for a specific Channel are exhausted the AdvancedChannelSet will advance to the next Channel in the set to attempt to reconnect.
Regardless of clustering, if a Channel cannot connect or looses connectivity, the AdvancedChannelSet will advance to its next available Channel and attempt to reconnect. This allows the AdvancedChannelSet to hunt through Channels that use different protocols, ports, etc., in search of one that can connect to its endpoint successfully.
ParametrychannelIds:Array (default = null ) — The ids of configured Channels obtained from ServerConfig for this AdvancedChannelSet to
use. If null, Channels must be manually added to the AdvancedChannelSet.
| |
clusteredWithURLLoadBalancing:Boolean (default = false ) — True if the Channels in the AdvancedChannelSet are clustered
using url load balancing.
|
ADAPTIVE_FREQUENCY_DESTINATION | Stała |
protected static const ADAPTIVE_FREQUENCY_DESTINATION:String = "_DSAF"
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Special value of a destination using adaptive frequency.
MAX_REPLY_FETCH_INTERVAL_MILLIS | Stała |
public static const MAX_REPLY_FETCH_INTERVAL_MILLIS:int = 30000
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constant value for the upper limit for fetch interval.
START | Stała |
public static const START:String = "start"
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Special header value to instruct a client to start measuring it's rate.
STOP | Stała |
public static const STOP:String = "stop"
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Special header value to instruct a client to stop measuring it's rate.
Tue Jun 12 2018, 12:06 PM Z