Valescom Java API

com.valescom.support.timer.java
Class PeriodicTimer

java.lang.Object
  |
  +--com.valescom.support.event.java.EventHandler
        |
        +--com.valescom.support.timer.java.Timer
              |
              +--com.valescom.support.timer.java.PeriodicTimer

public abstract class PeriodicTimer
extends Timer

Responsibility:
Performing a task periodically.
Usage:

new PeriodicTimer(10)
{
    public final void
    handle(Event anEvent)
    {
        // do something, such as sending a heartbeat signal
    }
}.start();

 

Constructor Summary
protected PeriodicTimer(int anInterval)
           
 
Method Summary
protected  void timeout()
           
 
Methods inherited from class com.valescom.support.timer.java.Timer
delay, interval, interval, isStarted, register, restart, start, stop, subscription, unregister
 
Methods inherited from class com.valescom.support.event.java.EventHandler
handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodicTimer

protected PeriodicTimer(int anInterval)
Method Detail

timeout

protected final void timeout()
Overrides:
timeout in class Timer

Valescom Java API

Copyright 1998, 2003 - Valescom