ajanta.server
Class Synchronizer

java.lang.Object
  |
  +--ajanta.server.Synchronizer

public class Synchronizer
extends java.lang.Object

This class allow two threads to synchronize to some event. NOTE: Changed for JDK 1.2 as count is not kept in wait and notify


Constructor Summary
Synchronizer()
           
 
Method Summary
 void go()
          notify threads
 void stop()
          Stop the calling thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Synchronizer

public Synchronizer()
Method Detail

stop

public void stop()
          throws java.lang.InterruptedException
Stop the calling thread

java.lang.InterruptedException

go

public void go()
notify threads