public class TargetedNotification extends java.lang.Object implements java.io.Serializable
| Constructor and Description |
|---|
TargetedNotification(javax.management.Notification notif,
java.lang.Integer id)
Constructs a new
TargetedNotification which connects
the supplied notification with the specified identifier. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getListenerID()
Returns the identifier for the listener
which received the notification.
|
javax.management.Notification |
getNotification()
Returns the notification.
|
java.lang.String |
toString()
Returns a textual representation of the object.
|
public TargetedNotification(javax.management.Notification notif, java.lang.Integer id)
TargetedNotification which connects
the supplied notification with the specified identifier. The
identifier matches one of those returned by a previous call
to add a new notification listener.notif - the notification.id - the identifier of the listener that received the
notification.java.lang.IllegalArgumentException - if either argument is
null.public javax.management.Notification getNotification()
public java.lang.Integer getListenerID()
public java.lang.String toString()
toString in class java.lang.ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)