Voyager ORB

com.objectspace.lib.timer
Class TimerListenerThread

java.lang.Object
  |
  +--com.objectspace.lib.timer.TimerListenerThread

public class TimerListenerThread
extends java.lang.Object
implements TimerListener, java.lang.Runnable

A TimerListenerThread is a TimerListener that uses a new thread object to invoke timerExpired() on another associated TimerListener.

Version:
3.0
See Also:
TimerListener

Constructor Summary
TimerListenerThread(TimerListener listener)
          Construct myself to notify the specified listener with a thread of the current priority.
TimerListenerThread(TimerListener listener, int priority)
          Construct myself to notify the specified listener with a thread of the specified priority.
 
Method Summary
 void timerExpired(TimerEvent event)
          A timer expired and generated a timer event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerListenerThread

public TimerListenerThread(TimerListener listener)
Construct myself to notify the specified listener with a thread of the current priority.
Parameters:
listener - The timer listener than I should notify.

TimerListenerThread

public TimerListenerThread(TimerListener listener,
                           int priority)
Construct myself to notify the specified listener with a thread of the specified priority.
Parameters:
listener - The timer listener than I should notify.
priority - The priority of the thread to use for notification.
Method Detail

timerExpired

public void timerExpired(TimerEvent event)
A timer expired and generated a timer event. Create a new daemon thread to invoke timerExpired( event ) on my associated listener and return immediately.
Specified by:
timerExpired in interface TimerListener
Parameters:
event - The timer event.

ObjectSpace Inc.

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