Класс 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 - Слушатель (не может быть null), на котором нужно вызвать notificationReceived.

© 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.
https://docs.oracle.com/en/java/javase/11/docs/api/java.naming/javax/naming/ldap/UnsolicitedNotificationEvent.html

Spec-Zone .ru
спецификации, руководства, описания, API