websphinx.util
Class Timer

java.lang.Object
  |
  +--websphinx.util.Timer
Direct Known Subclasses:
Chronicle, CrawlTimer, WormTimer

public class Timer
extends java.lang.Object


Field Summary
(package private)  long deadline
           
(package private)  int interval
           
(package private)  boolean isExpired
           
(package private) static TimerManager manager
           
(package private)  Timer next
           
(package private)  boolean periodic
           
(package private)  Timer prev
           
 
Constructor Summary
Timer()
           
 
Method Summary
protected  void alarm()
           
 void cancel()
           
 boolean expired()
           
 int getInterval()
           
 boolean getPeriodic()
           
 void set(int msecDelay, boolean periodic)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

interval

int interval

periodic

boolean periodic

isExpired

boolean isExpired

manager

static TimerManager manager

deadline

long deadline

next

Timer next

prev

Timer prev
Constructor Detail

Timer

public Timer()
Method Detail

set

public void set(int msecDelay,
                boolean periodic)

getInterval

public int getInterval()

getPeriodic

public boolean getPeriodic()

cancel

public void cancel()

alarm

protected void alarm()

expired

public boolean expired()