Package com.sun.ts.tests.jms.common
Class DoneLatch
java.lang.Object
com.sun.ts.tests.jms.common.DoneLatch
Monitor class for asynchronous examples. Producer signals end of message stream; listener calls allDone() to notify
 consumer that the signal has arrived, while consumer calls waitTillDone() to wait for this notification.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidallDone()Sets done to true.voidWaits until done is set to true.
- 
Constructor Details- 
DoneLatchpublic DoneLatch()
 
- 
- 
Method Details- 
waitTillDonepublic void waitTillDone()Waits until done is set to true.
- 
allDonepublic void allDone()Sets done to true.
 
-