Package com.microstrategy.webapi
Class ACMSignaller
- java.lang.Object
-
- com.microstrategy.webapi.ACMSignaller
-
public class ACMSignaller extends java.lang.Object
ACMSignaller
is a generic helper that abstracts away the complexities involved inwait
andnotify/notifyAll
.
A thread can wait for a resource using theawait
method. Another thread can notify that a resource has just become available by callingsignal/signalAll
method. Different names were chosen to differentiate these calls with the Javawait/notify/notifyAll
methods.
Theawait
method also allows the distinction between signalled and the timeout expired (whichwait
does not).
Example:ACMSignaller mSignaller = new ACMSignaller(); ...Thread1... mSignaller.await(); ...Thread2... mSignaller.signal();
-
-
Constructor Summary
Constructors Constructor Description ACMSignaller()
-