|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadStore
A class implementing this interface provides a sort of store where threads like customers can enter and exit. The store can open and close. The rule are that no thread can enter when the store is closed and that the store cannot close until all threads already inside exit. Like in any other stores, once the store is closing, no more Thread can enter.
Method Summary | |
---|---|
void |
close()
Closes the store. |
void |
enter()
Signals that a thread wants to enter the store. |
void |
exit()
Signals that a thread exited the store. |
void |
open()
Opens the store. |
int |
threadCount()
Returns how many threads are in the store. |
Method Detail |
---|
int threadCount()
void enter()
void exit()
void close()
void open()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |