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).
                    ACMSignaller mSignaller = new ACMSignaller();
    • Constructor Summary

      Constructor Description
    • 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()