模块 java.naming

类 UnsolicitedNotificationEvent

java.lang.Object
java.util.EventObject
javax.naming.ldap.UnsolicitedNotificationEvent
所有已实现的接口:
Serializable

public class UnsolicitedNotificationEvent extends EventObject
此类表示为响应 LDAP 服务发送的未经请求的通知而触发的事件。
自从:
1.3
参见:
  • 构造方法详细信息

    • UnsolicitedNotificationEvent

      public UnsolicitedNotificationEvent(Object  src, UnsolicitedNotification  notice)
      构造一个 UnsolicitedNotificationEvent 新实例
      参数:
      src - 触发事件的非空源。
      notice - 非空的主动通知。
  • 方法详情

    • getNotification

      public UnsolicitedNotification  getNotification()
      返回未经请求的通知。
      返回:
      导致此事件被触发的非 null 主动通知。
    • dispatch

      public void dispatch(UnsolicitedNotificationListener  listener)
      使用此事件在监听器上调用 notificationReceived() 方法。
      参数:
      listener - 调用 notificationReceived 的非空监听器。