|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
A helper class for notification broadcasters/emitters
| Constructor Summary | |
NotificationBroadcasterSupport()
Construct the new notification broadcaster support object |
|
| Method Summary | |
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
Add a listener to an MBean. |
MBeanNotificationInfo[] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
protected void |
handleNotification(NotificationListener listener,
Notification notification,
Object handback)
Handle the notification, the default implementation is to synchronously invoke the listener. |
void |
removeNotificationListener(NotificationListener listener)
Removes a listener from an MBean. |
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
Removes a listener from the Emitter. |
void |
sendNotification(Notification notification)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NotificationBroadcasterSupport()
| Method Detail |
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
NotificationBroadcaster
addNotificationListener in interface NotificationBroadcasterlistener - implementation of the listener objectfilter - implementation of the filter object or null
if no filtering is requiredhandback - A handback object associated with each notification
sent by this notification broadcaster.public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
NotificationBroadcaster
removeNotificationListener in interface NotificationBroadcasterlistener - the listener object to remove
ListenerNotFoundException - if the listener was not foundpublic void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
NotificationEmitterOnly the listener, filter, handback triplet is removed
removeNotificationListener in interface NotificationEmitterlistener - the listener object to removefilter - the filter registered with the listenerhandback - the handback object associated with the registered listener
ListenerNotFoundException - if the listener was not foundpublic MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcaster
getNotificationInfo in interface NotificationBroadcasterMBeanNotificationInfopublic void sendNotification(Notification notification)
protected void handleNotification(NotificationListener listener, Notification notification, Object handback)
listener - the listener to notifynotification - the notificationhandback - the handback object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||