Spec-Zone.ru › OpenJDK 8

Класс UnsolicitedNotificationEvent

  • java.lang.Object
    • java.util.EventObject
      • javax.naming.ldap.UnsolicitedNotificationEvent
Все реализованные интерфейсы:
Serializable

public class UnsolicitedNotificationEvent
extends EventObject

Этот класс представляет событие, сгенерированное в ответ на неявное уведомление, отправленное сервером LDAP.

С момента:
1.3
См. также:
UnsolicitedNotification, UnsolicitedNotificationListener, EventContext.addNamingListener(javax.naming.Name, int, javax.naming.event.NamingListener), EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener), EventContext.removeNamingListener(javax.naming.event.NamingListener), Сериализованная форма

Поля

Поля, унаследованные от класса java.util.EventObject

source

Конструкторы

Конструктор и описание
UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice)

Создаёт новый экземпляр UnsolicitedNotificationEvent.

Методы

Модификатор и тип Метод и описание
void dispatch(UnsolicitedNotificationListener listener)

Вызывает метод notificationReceived() на слушателе, используя это событие.

UnsolicitedNotification getNotification()

Возвращает неявное уведомление.

Методы, унаследованные от класса java.util.EventObject

getSource, toString

Методы, унаследованные от класса java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Конструкторы

UnsolicitedNotificationEvent

public UnsolicitedNotificationEvent(Object src,
                                    UnsolicitedNotification notice)

Создаёт новый экземпляр UnsolicitedNotificationEvent.

Параметры:
src - Источник, сгенерировавший событие (не null).
notice - Неявное уведомление (не null).

Методы

getNotification

public UnsolicitedNotification getNotification()

Возвращает неявное уведомление.

Возвращает:
Неявное уведомление, которое вызвало это событие (не null).

dispatch

public void dispatch(UnsolicitedNotificationListener listener)

Вызывает метод notificationReceived() на слушателе, используя это событие.

Параметры:
listener - Слушатель, на котором нужно вызвать notificationReceived (не null).

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API