- java.lang.Object
-
- com.sun.nio.sctp.AbstractNotificationHandler<T>
-
- すべての実装されたインタフェース:
NotificationHandler<T>
public class AbstractNotificationHandler<T> extends Object implements NotificationHandler<T>
通知を処理してから続行するスケルトン・ハンドラです。このクラスは、すべての通知が消費され、チャネルがメッセージの受信を試みることを続けるように、
CONTINUE
を返すだけのhandleNotification
メソッドを実装します。また、サポートが必要な通知型ごとに1つ、
handleNotification
メソッドのオーバーロードされたバージョンも提供します(AssociationChangeNotification
、PeerAddressChangeNotification
、SendFailedNotification
、ShutdownNotification
)。 通知が受信されると、適切なメソッドが呼び出されます。- 導入されたバージョン:
- 1.7
-
-
コンストラクタのサマリー
コンストラクタ 修飾子 コンストラクタ 説明 protected
AbstractNotificationHandler()
このクラスの新しいインスタンスを初期化します。
-
メソッドのサマリー
修飾子と型 メソッド 説明 HandlerResult
handleNotification(AssociationChangeNotification notification, T attachment)
SCTPスタックからAssociationChangeNotification
を受信したときに呼び出されます。HandlerResult
handleNotification(Notification notification, T attachment)
SCTPスタックから実装固有の通知を受信したときに呼び出されます。HandlerResult
handleNotification(PeerAddressChangeNotification notification, T attachment)
SCTPスタックからPeerAddressChangeNotification
を受信したときに呼び出されます。HandlerResult
handleNotification(SendFailedNotification notification, T attachment)
SCTPスタックからSendFailedNotification
を受信したときに呼び出されます。HandlerResult
handleNotification(ShutdownNotification notification, T attachment)
SCTPスタックからShutdownNotification
を受信したときに呼び出されます。
-
-
-
メソッドの詳細
-
handleNotification
public HandlerResult handleNotification(Notification notification, T attachment)
SCTPスタックから実装固有の通知を受信したときに呼び出されます。- 定義:
handleNotification
、インタフェース:NotificationHandler<T>
- パラメータ:
notification
- 通知attachment
-receive
操作の開始時に接続されるオブジェクト。- 戻り値:
- ハンドラの結果
-
handleNotification
public HandlerResult handleNotification(AssociationChangeNotification notification, T attachment)
SCTPスタックからAssociationChangeNotification
を受信したときに呼び出されます。- パラメータ:
notification
- 通知attachment
-receive
操作の開始時に接続されるオブジェクト。- 戻り値:
- ハンドラの結果
-
handleNotification
public HandlerResult handleNotification(PeerAddressChangeNotification notification, T attachment)
SCTPスタックからPeerAddressChangeNotification
を受信したときに呼び出されます。- パラメータ:
notification
- 通知attachment
-receive
操作の開始時に接続されるオブジェクト。- 戻り値:
- ハンドラの結果
-
handleNotification
public HandlerResult handleNotification(SendFailedNotification notification, T attachment)
SCTPスタックからSendFailedNotification
を受信したときに呼び出されます。- パラメータ:
notification
- 通知attachment
-receive
操作の開始時に接続されるオブジェクト。- 戻り値:
- ハンドラの結果
-
handleNotification
public HandlerResult handleNotification(ShutdownNotification notification, T attachment)
SCTPスタックからShutdownNotification
を受信したときに呼び出されます。- パラメータ:
notification
- 通知attachment
-receive
操作の開始時に接続されるオブジェクト。- 戻り値:
- ハンドラの結果
-
-