1 /* 2 * $Id: TimeEvent.java 8077 2007-08-27 20:15:25Z 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 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 /** */ 32 private long timeExpired; 33 34 /** 35 * @param source 36 * @param name 37 * @param timeExpired 38 */ 39 public TimeEvent(Object source, String name, long timeExpired) 40 { 41 super(source); 42 this.name = name; 43 this.timeExpired = timeExpired; 44 } 45 46 /** 47 * @return 48 */ 49 public String getName() 50 { 51 return name; 52 } 53 54 /** 55 * @return 56 */ 57 public long getTimeExpired() 58 { 59 return timeExpired; 60 } 61 }