Voyager ORB

com.objectspace.lib.timer
Class TimerEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.objectspace.lib.timer.TimerEvent

public class TimerEvent
extends java.util.EventObject

A TimerEvent is generated by a timer when its alarm triggers.

Version:
3.0
See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TimerEvent(Timer timer, long time)
          Construct a timer event associated with the specified timer and time.
 
Method Summary
 java.util.Date getDate()
          Return the time of this event as a date.
 long getTime()
          Return the time of this event as milliseconds since January 1, 1970, 00:00:00 GMT
 Timer getTimer()
          Return the timer that generated this event.
 java.lang.String toString()
          Return a string that describes me.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimerEvent

public TimerEvent(Timer timer,
                  long time)
Construct a timer event associated with the specified timer and time.
Parameters:
timer - The source of this event.
time - The time of this event.
Method Detail

toString

public java.lang.String toString()
Return a string that describes me.
Overrides:
toString in class java.util.EventObject

getTime

public long getTime()
Return the time of this event as milliseconds since January 1, 1970, 00:00:00 GMT

getTimer

public Timer getTimer()
Return the timer that generated this event.

getDate

public java.util.Date getDate()
Return the time of this event as a date.

ObjectSpace Inc.

(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240