FileDocCategorySizeDatePackage
TimerNotification.javaAPI DocJava SE 5 API2928Fri Aug 26 14:57:38 BST 2005javax.management.timer

TimerNotification

public class TimerNotification extends Notification
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.

version
1.26 02/10/04
author
Sun Microsystems, Inc
since
1.5

Fields Summary
private static final long
serialVersionUID
private Integer
notificationID
Constructors Summary
public TimerNotification(String type, Object source, long sequenceNumber, long timeStamp, String msg, Integer id)
Creates a timer notification object.

param
type The notification type.
param
source The notification producer.
param
sequenceNumber The notification sequence number within the source object.
param
timeStamp The notification emission date.
param
msg The notification message.
param
id The notification identifier.
since.unbundled
JMX 1.2


    
    /*
     * ------------------------------------------
     *  CONSTRUCTORS
     * ------------------------------------------
     */
    
                                                     
                 
        
        super(type, source, sequenceNumber, timeStamp, msg);
        this.notificationID = id;
    
Methods Summary
java.lang.ObjectcloneTimerNotification()
Creates and returns a copy of this object.

 
        
        TimerNotification clone = new TimerNotification(this.getType(), this.getSource(), this.getSequenceNumber(), 
                                                        this.getTimeStamp(), this.getMessage(), notificationID);
        clone.setUserData(this.getUserData());
        return clone;
    
public java.lang.IntegergetNotificationID()
Gets the identifier of this timer notification.

return
The identifier.

 
        return notificationID;