1 7 8 package javax.management.timer; 9 10 22 public class TimerNotification extends javax.management.Notification { 23 24 25 26 private static final long serialVersionUID = 1798492029603825750L; 27 28 33 34 38 private Integer notificationID; 39 40 41 46 47 59 public TimerNotification(String type, Object source, long sequenceNumber, long timeStamp, String msg, Integer id) { 60 61 super(type, source, sequenceNumber, timeStamp, msg); 62 this.notificationID = id; 63 } 64 65 70 71 74 79 public Integer getNotificationID() { 80 return notificationID; 81 } 82 83 88 89 93 Object cloneTimerNotification() { 94 95 TimerNotification clone = new TimerNotification (this.getType(), this.getSource(), this.getSequenceNumber(), 96 this.getTimeStamp(), this.getMessage(), notificationID); 97 clone.setUserData(this.getUserData()); 98 return clone; 99 } 100 } 101 | Popular Tags |