- すべてのスーパー・インタフェース:
EventListener
,NamingListener
public interface UnsolicitedNotificationListener extends NamingListener
このインタフェースは、
UnsolicitedNotificationEvent
を処理するためのものです。 「非要請通知」はRFC 2251で定義されています。 このインタフェースによって、サーバーは非要請通知をクライアントに送信できます。 UnsolicitedNotificationListener
は次の条件を満たす必要があります:
- このインタフェースおよびメソッドを実装する。
NamingListener.namingExceptionThrown()
を実装して、未承諾の通知イベントの収集中にスローされた例外が通知されるようにします。EventContext
またはEventDirContext
のいずれかのaddNamingListener()
メソッドを使用して、コンテキストに登録します。 これらのメソッドのNamingListener
引数のみが適用可能です。残りはUnsolicitedNotificationListener
では無視されます。 (これらの引数は、リスナーが他のリスナー・インタフェースを実装しているときにはリスナーに適用される場合がある)。
- 導入されたバージョン:
- 1.3
- 関連項目:
-
メソッドのサマリー
インタフェース javax.naming.event.NamingListenerで宣言されたメソッド
namingExceptionThrown
-
メソッドの詳細
-
notificationReceived
void notificationReceived(UnsolicitedNotificationEvent evt) 非要請通知が受信されている場合に呼び出されます。- パラメータ:
evt
- null以外のUnsolicitedNotificationEvent
-