Class Overview
A (Notification, Listener ID) pair.
This class is used to associate an emitted notification
with the listener ID to which it is targeted.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Public Constructors
public
TargetedNotification
(Notification notification, Integer listenerID)
Constructs a TargetedNotification
object. The
object contains a pair (Notification, Listener ID).
The Listener ID identifies the client listener to which that
notification is targeted. The client listener ID is one
previously returned by the connector server in response to an
addNotificationListener
request.
Parameters
notification
| Notification emitted from the MBean server. |
listenerID
| The ID of the listener to which this
notification is targeted. |
Public Methods
public
Integer
getListenerID
()
The ID of the listener to which the notification is
targeted.
public
Notification
getNotification
()
The emitted notification.
public
String
toString
()
Returns a textual representation of this Targeted Notification.
Returns
- a String representation of this Targeted Notification.