public class AbstractNotificationHandler<T> extends Object implements NotificationHandler<T>
このクラスは、すべての通知が消費され、チャネルがメッセージの受信を試みることを続けるように、CONTINUE
を返すだけの handleNotification
メソッドを実装します。
また、サポートが必要な通知型ごとに 1 つ、handleNotification
メソッドのオーバーロードされたバージョンも提供します (AssociationChangeNotification
、PeerAddressChangeNotification
、SendFailedNotification
、ShutdownNotification
)。通知が受信されると、適切なメソッドが呼び出されます。
修飾子 | コンストラクタと説明 |
---|---|
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 を受信したときに呼び出されます。 |
protected AbstractNotificationHandler()
public HandlerResult handleNotification(Notification notification, T attachment)
handleNotification
、インタフェース: NotificationHandler<T>
notification
- 通知attachment
- receive
操作の開始時に接続されるオブジェクト。public HandlerResult handleNotification(AssociationChangeNotification notification, T attachment)
AssociationChangeNotification
を受信したときに呼び出されます。notification
- 通知attachment
- receive
操作の開始時に接続されるオブジェクト。public HandlerResult handleNotification(PeerAddressChangeNotification notification, T attachment)
PeerAddressChangeNotification
を受信したときに呼び出されます。notification
- 通知attachment
- receive
操作の開始時に接続されるオブジェクト。public HandlerResult handleNotification(SendFailedNotification notification, T attachment)
SendFailedNotification
を受信したときに呼び出されます。notification
- 通知attachment
- receive
操作の開始時に接続されるオブジェクト。public HandlerResult handleNotification(ShutdownNotification notification, T attachment)
ShutdownNotification
を受信したときに呼び出されます。notification
- 通知attachment
- receive
操作の開始時に接続されるオブジェクト。
Copyright © 2009, 2013, Oracle and/or its affiliates. All rights reserved.