|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgrinda.common.Semaphore
public class Semaphore
Thi class is used to block an application on blocking operation like take. It can store the value that the application was wating for.
| Constructor Summary | |
|---|---|
Semaphore()
|
|
| Method Summary | |
|---|---|
void |
block()
Blocks the application |
java.lang.Object |
getValue()
Gets the expected value |
void |
setValue(java.lang.Object value)
Sets the expected value |
void |
unBlock()
Restarts the application |
void |
unBlockAll()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Semaphore()
| Method Detail |
|---|
public void block()
public void unBlock()
public void unBlockAll()
public void setValue(java.lang.Object value)
value - public java.lang.Object getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||