|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.common.concurrent.EventLatch
public final class EventLatch
A synchronization aid that works like a CountDownLatch set to an initial
count of 1. Instead of wait methods this class has to be queried for a
IWaitToken. This token can safely be published to other classes.
| Constructor Summary | |
|---|---|
EventLatch()
|
|
| Method Summary | |
|---|---|
void |
fire()
Sets the event, releasing all waiting threads. |
IWaitToken |
getWaitToken()
Returns the IWaitToken for this event latch. |
boolean |
isFired()
Returns true if the event was already fired. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventLatch()
| Method Detail |
|---|
public void fire()
public IWaitToken getWaitToken()
IWaitToken for this event latch.
public boolean isFired()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||