View Javadoc

1   /*
2    * $Id: TimeEvent.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
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;
14  
15  /**
16   * <code>TimeEvent</code> TODO is an event that occurs at a specified number of
17   * milliseconds.
18   */
19  public class TimeEvent extends EventObject
20  {
21      /**
22       * Serial version
23       */
24      private static final long serialVersionUID = -7540426406525372393L;
25  
26      /**
27       * The event name
28       */
29      private String name;
30  
31      private long timeExpired;
32  
33      public TimeEvent(Object source, String name, long timeExpired)
34      {
35          super(source);
36          this.name = name;
37          this.timeExpired = timeExpired;
38      }
39  
40      public String getName()
41      {
42          return name;
43      }
44  
45      public long getTimeExpired()
46      {
47          return timeExpired;
48      }
49  }