KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > util > timer > TimeEvent


1 /*
2  * $Id: TimeEvent.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.util.timer;
12
13 import java.util.EventObject JavaDoc;
14
15 /**
16  * <code>TimeEvent</code> TODO is an event that occurs at a specified number of
17  * milliseconds.
18  *
19  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
20  * @version $Revision: 3798 $
21  */

22 public class TimeEvent extends EventObject JavaDoc
23 {
24     /**
25      * Serial version
26      */

27     private static final long serialVersionUID = -7540426406525372393L;
28
29     /**
30      * The event name
31      */

32     private String JavaDoc name;
33
34     /** */
35     private long timeExpired;
36
37     /**
38      * @param source
39      * @param name
40      * @param timeExpired
41      */

42     public TimeEvent(Object JavaDoc source, String JavaDoc name, long timeExpired)
43     {
44         super(source);
45         this.name = name;
46         this.timeExpired = timeExpired;
47     }
48
49     /**
50      * @return
51      */

52     public String JavaDoc getName()
53     {
54         return name;
55     }
56
57     /**
58      * @return
59      */

60     public long getTimeExpired()
61     {
62         return timeExpired;
63     }
64 }
65
Popular Tags