| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private List | listenerList
Current list of listeners, a List of ListenerInfo. |
| private Object |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
Implements javax. Adds a listener to this MBean. |
| public abstract MBeanNotificationInfo[] | getNotificationInfo()
Redeclares javax. Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type. |
| public boolean | |
| public void | removeNotificationListener(NotificationListener listener)
Implements javax. Removes a listener from this MBean. |
| public void | removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
Implements javax. Removes a listener from this MBean. |
| public void |
| listenerList | back to summary |
|---|---|
| private List<NotificationEmitterSupport. Current list of listeners, a List of ListenerInfo. The object referenced by this field is never modified. Instead, the field is set to a new object when a listener is added or removed, within a synchronized(this). In this way, there is no need to synchronize when traversing the list to send a notification to the listeners in it. That avoids potential deadlocks if the listeners end up depending on other threads that are themselves accessing this NotificationBroadcasterSupport. | |
| listenerLock | back to summary |
|---|---|
| private Object listenerLock | |
| NotificationEmitterSupport | back to summary |
|---|---|
| protected NotificationEmitterSupport() | |
| addNotificationListener | back to summary |
|---|---|
| public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Implements javax. Doc from javax. Adds a listener to this MBean. | |
| getNotificationInfo | back to summary |
|---|---|
| public abstract MBeanNotificationInfo[] getNotificationInfo() Redeclares javax. Doc from javax. Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type. It is not illegal for the MBean to send notifications not described in this array. However, some clients of the MBean server may depend on the array being complete for their correct functioning. | |
| hasListeners | back to summary |
|---|---|
| public boolean hasListeners() | |
| removeNotificationListener | back to summary |
|---|---|
| public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException Implements javax. Doc from javax. Removes a listener from this MBean. If the listener has been registered with different handback objects or notification filters, all entries corresponding to the listener will be removed.
| |
| removeNotificationListener | back to summary |
|---|---|
| public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException Implements javax. Doc from javax. Removes a listener from this MBean. The MBean must have a
listener that exactly matches the given The
| |
| sendNotification | back to summary |
|---|---|
| public void sendNotification(Notification notification) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv NotificationFilter | |
| pack-priv Object | |
| public NotificationListener |
| Access | Constructor and Description |
|---|---|
| public |
| filter | back to summary |
|---|---|
| pack-priv NotificationFilter filter | |
| handback | back to summary |
|---|---|
| pack-priv Object handback | |
| listener | back to summary |
|---|---|
| public NotificationListener listener | |
| ListenerInfo | back to summary |
|---|---|
| public ListenerInfo(NotificationListener listener, NotificationFilter filter, Object handback) | |