|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
public class JBossNotificationBroadcasterSupport
A helper class for notification broadcasters/emitters
Constructor Summary | |
---|---|
JBossNotificationBroadcasterSupport()
Construct the new notification broadcaster support object |
Method Summary | |
---|---|
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
Add a listener to an MBean. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
void |
handleNotification(javax.management.NotificationListener listener,
javax.management.Notification notification,
Object handback)
Handle the notification, the default implementation is to synchronously invoke the listener. |
long |
nextNotificationSequenceNumber()
The nextNotificationSequenceNumber method returns
the next sequence number for use in notifications. |
void |
removeNotificationListener(javax.management.NotificationListener listener)
Removes a listener from an MBean. |
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
Removes a listener from the Emitter. |
void |
sendNotification(javax.management.Notification notification)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JBossNotificationBroadcasterSupport()
Method Detail |
---|
public void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback)
javax.management.NotificationBroadcaster
addNotificationListener
in interface javax.management.NotificationBroadcaster
listener
- 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(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
javax.management.NotificationBroadcaster
removeNotificationListener
in interface javax.management.NotificationBroadcaster
listener
- the listener object to remove
javax.management.ListenerNotFoundException
- if the listener was not foundpublic void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback) throws javax.management.ListenerNotFoundException
javax.management.NotificationEmitter
Only the listener, filter, handback triplet is removed
removeNotificationListener
in interface javax.management.NotificationEmitter
listener
- the listener object to removefilter
- the filter registered with the listenerhandback
- the handback object associated with the registered listener
javax.management.ListenerNotFoundException
- if the listener was not foundpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
javax.management.NotificationBroadcaster
getNotificationInfo
in interface javax.management.NotificationBroadcaster
MBeanNotificationInfo
public void sendNotification(javax.management.Notification notification)
public void handleNotification(javax.management.NotificationListener listener, javax.management.Notification notification, Object handback)
listener
- the listener to notifynotification
- the notificationhandback
- the handback objectpublic long nextNotificationSequenceNumber()
nextNotificationSequenceNumber
method returns
the next sequence number for use in notifications.
long
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |