| パッケージ | net.user1.reactor |
| クラス | public class ConnectionManagerEvent |
| 継承 | ConnectionManagerEvent flash.events.Event |
| バージョン : | Reactor 1.0.0 |
関連項目
| メソッド | 定義元 | ||
|---|---|---|---|
ConnectionManagerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, connection:IConnection = null, status:String = null) 新しいConnectionManagerEventオブジェクトを初期化します。 | ConnectionManagerEvent | ||
clone():Event [オーバーライド] | ConnectionManagerEvent | ||
このイベントに関する下層のIConnectionオブジェクトを返します。 | ConnectionManagerEvent | ||
getStatus():String イベントのステータスを返します。 | ConnectionManagerEvent | ||
toString():String [オーバーライド] | ConnectionManagerEvent | ||
| 定数 | 定義元 | ||
|---|---|---|---|
| BEGIN_CONNECT : String = BEGIN_CONNECT [静的] ConnectionManagerによる接続試行が開始するときにトリガーされるイベントです。 | ConnectionManagerEvent | ||
| CLIENT_KILL_CONNECT : String = CLIENT_KILL_CONNECT [静的] クライアントがアクティブな接続を閉じるときにトリガーされるイベントです。 | ConnectionManagerEvent | ||
| CONNECT_FAILURE : String = CONNECT_FAILURE [静的] ConnectionManagerによる接続試行が失敗するときにトリガーされるイベントです。 | ConnectionManagerEvent | ||
| DISCONNECT : String = DISCONNECT [静的] クライアントかサーバーのどちらかがアクティブな接続を閉じるときにトリガーされるイベントです。 | ConnectionManagerEvent | ||
| READY : String = READY [静的] ConnectionManagerの接続リスト内のIConnectionオブジェクトの一つがREADY状態を達成するときにトリガーされるイベントです。 | ConnectionManagerEvent | ||
| SELECT_CONNECTION : String = SELECT_CONNECTION [静的] ConnectionManagerが接続試行のためにIConnectionオブジェクトを選択するときにトリガーされるイベントです。 | ConnectionManagerEvent | ||
| SERVER_KILL_CONNECT : String = SERVER_KILL_CONNECT [静的] サーバーがアクティブな接続を閉じるときにトリガーされるイベントです。 | ConnectionManagerEvent | ||
| ConnectionManagerEvent | () | コンストラクタ |
public function ConnectionManagerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, connection:IConnection = null, status:String = null)| バージョン : | Reactor 1.0.0 |
新しいConnectionManagerEventオブジェクトを初期化します。
パラメータtype:String | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) | |
connection:IConnection (default = null) | |
status:String (default = null) |
| clone | () | メソッド |
override public function clone():Event 戻り値 Event |
| getConnection | () | メソッド |
public function getConnection():IConnection| バージョン : | Reactor 1.0.0 |
このイベントに関する下層のIConnectionオブジェクトを返します。 getConnection()メソッドは次のイベントで使用可能です:
IConnection |
| getStatus | () | メソッド |
public function getStatus():String| バージョン : | Reactor 1.0.0 |
イベントのステータスを返します。 getStatus()メソッドはConnectionManagerEvent.CONNECT_FAILUREイベントでのみ使用可能です。
戻り値String |
| toString | () | メソッド |
override public function toString():String 戻り値 String |
| BEGIN_CONNECT | 定数 |
public static const BEGIN_CONNECT:String = BEGIN_CONNECT| バージョン : | Reactor 1.0.0 |
ConnectionManagerによる接続試行が開始するときにトリガーされるイベントです。 ConnectionManagerEvent.BEGIN_CONNECTイベントの後にはConnectionManagerEvent.SELECT_CONNECTIONイベントが続きます。これはConnectionManagerがその接続試行に用いる特定のIConnectionオブジェクトを示します。
関連項目
| CLIENT_KILL_CONNECT | 定数 |
public static const CLIENT_KILL_CONNECT:String = CLIENT_KILL_CONNECT| バージョン : | Reactor 1.0.0 |
クライアントがアクティブな接続を閉じるときにトリガーされるイベントです。 ConnectionManagerEvent.CLIENT_KILL_CONNECTイベントの後には常にConnectionManagerEvent.DISCONNECTイベントが続きます。
関連項目
| CONNECT_FAILURE | 定数 |
public static const CONNECT_FAILURE:String = CONNECT_FAILURE| バージョン : | Reactor 1.0.0 |
ConnectionManagerによる接続試行が失敗するときにトリガーされるイベントです。 接続失敗の一般的な原因:
ConnectionManagerEvent.CONNECT_FAILUREイベントはConnectionManagerがその接続リスト内の全ての接続を使用して接続試行を行って、そのうち一つも"ready"状態を達成しなかったときにConnectionManagerクラスによってトリガーされるイベントです。 便宜的に、接続試行が失敗するとき、ReactorオブジェクトもReactorEvent.CLOSEイベントを送出します。
関連項目
| DISCONNECT | 定数 |
public static const DISCONNECT:String = DISCONNECT| バージョン : | Reactor 1.0.0 |
クライアントかサーバーのどちらかがアクティブな接続を閉じるときにトリガーされるイベントです。 ConnectionManagerEvent.DISCONNECTには常にConnectionManagerEvent.CLIENT_KILL_CONNECTイベントかConnectionManagerEvent.SERVER_KILL_CONNECTのどちらかが先行します。これは切断がクライアントとサーバーのどちらから行われたかを示します。
| READY | 定数 |
public static const READY:String = READY| バージョン : | Reactor 1.0.0 |
ConnectionManagerの接続リスト内のIConnectionオブジェクトの一つがREADY状態を達成するときにトリガーされるイベントです。 便宜的に、ConnectionManagerEvent.READYイベントは、次に、常にReactorEvent.READYイベントをトリガーします。 ready状態を達成した下層のIConnectionオブジェクトへの参照を取得するには、ConnectionManagerのgetActiveConnection()メソッドを使用してください。
関連項目
| SELECT_CONNECTION | 定数 |
public static const SELECT_CONNECTION:String = SELECT_CONNECTION| バージョン : | Reactor 1.0.0 |
ConnectionManagerが接続試行のためにIConnectionオブジェクトを選択するときにトリガーされるイベントです。 接続を選択すると、その直後にConnectionManagerはその接続を試行します。 次に、そのIConnectionオブジェクト自体が、Unionに接続できたかどうかを示すそれ自身のConnectionEventを送出します。 もしそのIConnectionオブジェクト自体が接続できない場合、ConnectionManagerは自動的に次の利用可能なIConnectionオブジェクトに移ります。 もしConnectionManagerのリスト内のいずれかのIConnectionオブジェクトが接続に成功すると、ConnectionManagerは次にConnectionManagerEvent.READYイベントをトリガーします。 もし、一方で、IConnectionオブジェクトが一つも接続しなかった場合、ConnectionManagerはConnectionManagerEvent.CONNECT_FAILUREイベントをトリガーし、そのリスト内のどのIConnectionオブジェクトを通しても接続を確立できなかったことを示します。
新しいIConnectionオブジェクトをConnectionManagerの接続リストに加えるには、ConnectionManagerのaddConnection()メソッドを使用してください。
関連項目
| SERVER_KILL_CONNECT | 定数 |
public static const SERVER_KILL_CONNECT:String = SERVER_KILL_CONNECT| バージョン : | Reactor 1.0.0 |
サーバーがアクティブな接続を閉じるときにトリガーされるイベントです。 ConnectionManagerEvent.SERVER_KILL_CONNECTイベントの後には常にConnectionManagerEvent.DISCONNECTイベントが続きます。
関連項目