Package org.glassfish.admin.amx.util.jmx
Class NotificationListenerTracking
- java.lang.Object
-
- org.glassfish.admin.amx.util.jmx.NotificationListenerTracking
-
public class NotificationListenerTracking extends Object
-
-
Constructor Summary
Constructors Constructor Description NotificationListenerTracking(boolean synchronize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 ofNotificationEmitter
.- 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 ofNotificationEmitter
.- Returns:
- list of NotificationListenerInfo
-
-