패키지 | mx.messaging |
클래스 | public class AdvancedChannelSet |
상속 | AdvancedChannelSet ChannelSet EventDispatcher Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
기본 MXML 속성channels
속성 | 정의 주체 | ||
---|---|---|---|
authenticated : Boolean [읽기 전용]
Indicates whether the ChannelSet has an underlying Channel that successfully
authenticated with its endpoint. | ChannelSet | ||
channelIds : Array [읽기 전용]
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 [읽기 전용]
Indicates whether the ChannelSet is connected. | ChannelSet | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
currentChannel : Channel [읽기 전용]
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 [읽기 전용]
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 |
메서드 | 정의 주체 | ||
---|---|---|---|
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
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | 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 | ||
이벤트를 이벤트 흐름으로 전달합니다. | EventDispatcher | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
Authenticates the ChannelSet with the server using the provided credentials. | ChannelSet | ||
Logs the ChannelSet out from the server. | ChannelSet | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
Removes a Channel from the ChannelSet. | ChannelSet | ||
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 | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
[재정의]
Returns a String containing the ids of the Channels in the ChannelSet. | ChannelSet | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher |
상수 | 정의 주체 | ||
---|---|---|---|
MAX_REPLY_FETCH_INTERVAL_MILLIS : int = 30000 [정적]
Constant value for the upper limit for fetch interval. | AdvancedChannelSet | ||
START : String = "start" [정적]
Special header value to instruct a client to start measuring it's rate. | AdvancedChannelSet | ||
STOP : String = "stop" [정적]
Special header value to instruct a client to stop measuring it's rate. | AdvancedChannelSet |
상수 | 정의 주체 | ||
---|---|---|---|
ADAPTIVE_FREQUENCY_DESTINATION : String = "_DSAF" [정적]
Special value of a destination using adaptive frequency. | AdvancedChannelSet |
reliableReconnectDuration | 속성 |
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.
오류
RangeError — If a negative value is assigned.
|
AdvancedChannelSet | () | 생성자 |
public function AdvancedChannelSet(channelIds:Array = null, clusteredWithURLLoadBalancing:Boolean = false)
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
매개 변수channelIds: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 | 상수 |
protected static const ADAPTIVE_FREQUENCY_DESTINATION:String = "_DSAF"
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Special value of a destination using adaptive frequency.
MAX_REPLY_FETCH_INTERVAL_MILLIS | 상수 |
public static const MAX_REPLY_FETCH_INTERVAL_MILLIS:int = 30000
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constant value for the upper limit for fetch interval.
START | 상수 |
public static const START:String = "start"
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Special header value to instruct a client to start measuring it's rate.
STOP | 상수 |
public static const STOP:String = "stop"
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Special header value to instruct a client to stop measuring it's rate.
Tue Jun 12 2018, 03:17 PM Z