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