Package lu.kbra.pclib.concurrency
Class CountTriggerLatch
java.lang.Object
lu.kbra.pclib.concurrency.CountTriggerLatch
- All Implemented Interfaces:
GenericTriggerLatch<Object>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetValue()booleanjoin()toString()voidbooleanbooleanwaitForChange(long timeout) booleanwaitForChange(long timeout, Predicate<Integer> condition) booleanwaitForChange(Predicate<Integer> condition) booleanbooleanwaitForSet(long timeout) booleanwaitForSet(long timeout, Predicate<Integer> condition) booleanwaitForSet(Predicate<Integer> condition)
-
Constructor Details
-
CountTriggerLatch
-
-
Method Details
-
countDown
public void countDown() -
getValue
public int getValue() -
join
public boolean join() -
toString
-
trigger
- Specified by:
triggerin interfaceGenericTriggerLatch<Object>
-
waitForChange
public boolean waitForChange() -
waitForChange
public boolean waitForChange(long timeout) -
waitForChange
-
waitForChange
-
waitForSet
public boolean waitForSet() -
waitForSet
public boolean waitForSet(long timeout) -
waitForSet
-
waitForSet
-