netscape.ldap
Class TTLTimer

java.lang.Object
  extended bynetscape.ldap.TTLTimer
All Implemented Interfaces:
java.lang.Runnable

class TTLTimer
extends java.lang.Object
implements java.lang.Runnable

Represents a timer which will timeout for every certain interval. It provides methods to start, stop, or restart timer.


Constructor Summary
(package private) TTLTimer(LDAPCache cache)
          Constructor with the specified timout.
 
Method Summary
 void run()
          The runnable waits until the timeout period has elapsed.
(package private)  void start(long timeout)
          (Re)start the timer.
(package private)  void stop()
          Stop the timer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TTLTimer

TTLTimer(LDAPCache cache)
Constructor with the specified timout.

Method Detail

start

void start(long timeout)
(Re)start the timer.


stop

void stop()
Stop the timer.


run

public void run()
The runnable waits until the timeout period has elapsed. It then notify the registered listener who listens for the timeout event.

Specified by:
run in interface java.lang.Runnable