Class ACMSignaller


  • public class ACMSignaller
    extends java.lang.Object
    ACMSignaller is a generic helper that abstracts away the complexities involved in wait and notify/notifyAll.
    A thread can wait for a resource using the await method. Another thread can notify that a resource has just become available by calling signal/signalAll method. Different names were chosen to differentiate these calls with the Java wait/notify/notifyAll methods.
    The await method also allows the distinction between signalled and the timeout expired (which wait does not).
    Example:
    
                    ACMSignaller mSignaller = new ACMSignaller();
     
                    ...Thread1...
                    mSignaller.await();
     
                    ...Thread2...
                    mSignaller.signal();
     
    • Constructor Summary

      Constructors 
      Constructor Description
      ACMSignaller()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ACMSignaller

        public ACMSignaller()