This class provides definitions of the notifications sent by timer MBeans.
This class provides definitions of the notifications sent by timer MBeans.
It defines a timer notification identifier which allows to retrieve a timer notification
from the list of notifications of a timer MBean.
The timer notifications are created and handled by the timer MBean.
See also:
Constructors
public TimerNotification
(String type, Object source, long sequenceNumber, long timeStamp, String msg, Integer id)
Creates a timer notification object.
Creates a timer notification object.
Parameters: - type - The notification type.
- source - The notification producer.
- sequenceNumber - The notification sequence number within the source object.
- timeStamp - The notification emission date.
- msg - The notification message.
- id - The notification identifier.
Get the notification message.
Returns:
The message string of this notification object. It contains in a string,
which could be the explanation of the notification for displaying to a user
Gets the identifier of this timer notification.
Returns:
The identifier.
public long
getSequenceNumber
()
[Inherited From Notification]
Get the notification sequence number.
Get the notification sequence number.
Returns:
The notification sequence number within the source object. It's a serial number
identifying a particular instance of notification in the context of the notification source.
The notification model does not assume that notifications will be received in the same order
that they are sent. The sequence number helps listeners to sort received notifications.
See Also:Notification.setSequenceNumber(long),
Get the notification type.
Returns:
The notification type. It's a string expressed in a dot notation similar
to Java properties. An example of a notification type is network.alarm.router .
Get the user data.
Returns:
The user data object. It is used for whatever data
the notification source wishes to communicate to its consumers.
See Also:Notification.setUserData(java.lang.Object),
public void
setSequenceNumber
(long sequenceNumber)
[Inherited From Notification]
Set the notification sequence number.
Set the notification sequence number.
Parameters: - sequenceNumber - The notification sequence number within the source object. It is
a serial number identifying a particular instance of notification in the
context of the notification source.
See Also:Notification.getSequenceNumber(),
Sets the source.
Parameters: - source - the new source for this object.
See Also:EventObject.getSource(),
public void
setTimeStamp
(long timeStamp)
[Inherited From Notification]
Set the notification timestamp.
Set the notification timestamp.
Parameters: - timeStamp - The notification timestamp. It indicates when the notification was generated.
See Also:Notification.getTimeStamp(),
Set the user data.
Parameters: - userData - The user data object. It is used for whatever data
the notification source wishes to communicate to its consumers.
See Also:Notification.getUserData(),