I have a thread that calls the wait method and can only be awoken when the notify method called from some other class:
wait
notify
class Threa
You probably want to use a java.util.concurrent.Semaphore for this.