View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.util.timer;
8   
9   import java.util.EventObject;
10  
11  /**
12   * <code>TimeEvent</code> TODO is an event that occurs at a specified number of
13   * milliseconds.
14   */
15  public class TimeEvent extends EventObject
16  {
17      /**
18       * Serial version
19       */
20      private static final long serialVersionUID = -7540426406525372393L;
21  
22      /**
23       * The event name
24       */
25      private String name;
26  
27      private long timeExpired;
28  
29      public TimeEvent(Object source, String name, long timeExpired)
30      {
31          super(source);
32          this.name = name;
33          this.timeExpired = timeExpired;
34      }
35  
36      public String getName()
37      {
38          return name;
39      }
40  
41      public long getTimeExpired()
42      {
43          return timeExpired;
44      }
45  }