Java EE 5 SDK

com.sun.appserv.management.util.jmx
Class NotificationListenerTracking

java.lang.Object
  extended by com.sun.appserv.management.util.jmx.NotificationListenerTracking

public class NotificationListenerTracking
extends Object


Constructor Summary
NotificationListenerTracking(boolean synchronize)
           
 
Method Summary
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 int getListenerCount()
           
 List<NotificationListenerInfo> removeNotificationListener(NotificationListener listener)
          Remove all instances of the specified listener and return their corresponding NotificationListenerInfo.
 NotificationListenerInfo removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
          Remove the first instance of the specified listener/filter/handback combination and return its corresponding NotificationListenerInfo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationListenerTracking

public NotificationListenerTracking(boolean synchronize)
Method Detail

addNotificationListener

public void addNotificationListener(NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback)

getListenerCount

public int getListenerCount()

removeNotificationListener

public List<NotificationListenerInfo> removeNotificationListener(NotificationListener listener)
Remove all instances of the specified listener and return their corresponding NotificationListenerInfo. This behavior matches the behavior of NotificationEmitter.

Returns:
list of NotificationListenerInfo

removeNotificationListener

public NotificationListenerInfo removeNotificationListener(NotificationListener listener,
                                                           NotificationFilter filter,
                                                           Object handback)
Remove the first instance of the specified listener/filter/handback combination and return its corresponding NotificationListenerInfo. This behavior matches the behavior of NotificationEmitter.

Returns:
list of NotificationListenerInfo

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.