User: juhalindfors
Date: 02/01/23 13:22:34
Modified: src/main/javax/management/timer Timer.java
TimerNotification.java
Log:
Small fix: userData included with the timer notifications.
Revision Changes Path
1.5 +3 -3 jmx/src/main/javax/management/timer/Timer.java
Index: Timer.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/javax/management/timer/Timer.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Timer.java 2002/01/18 20:32:42 1.4
+++ Timer.java 2002/01/23 21:22:34 1.5
@@ -26,7 +26,7 @@
* The timer service.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class Timer
extends NotificationBroadcasterSupport
@@ -137,7 +137,7 @@
Object userData, Date date, long period, long occurences)
throws IllegalArgumentException
{
- // Generate the next id.
+ // Generate the next id.
int newId = 0;
synchronized (this)
{
@@ -451,7 +451,7 @@
seq = ++sequenceNumber;
}
sendNotification(new TimerNotification(rn.type, this, seq,
- rn.nextDate, rn.message, rn.id));
+ rn.nextDate, rn.message, rn.id, rn.userData));
}
// Calculate the next date.
1.3 +3 -1 jmx/src/main/javax/management/timer/TimerNotification.java
Index: TimerNotification.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/javax/management/timer/TimerNotification.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TimerNotification.java 2001/12/17 23:46:06 1.2
+++ TimerNotification.java 2002/01/23 21:22:34 1.3
@@ -14,7 +14,7 @@
* A notification from the timer service.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class TimerNotification
extends Notification
@@ -42,12 +42,14 @@
* @param timeStamp the time the notification was sent.
* @param message the detailed message.
* @param id the timer notification id.
+ * @param userData additional notification user data
*/
TimerNotification(String type, Object source, long sequenceNumber,
- long timeStamp, String message, Integer id)
+ long timeStamp, String message, Integer id, Object userData)
{
super(type, source, sequenceNumber, timeStamp, message);
this.id = id;
+ this.setUserData(userData);
}
// Public --------------------------------------------------------
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development