Package lu.kbra.pclib.concurrency
Class ListTriggerLatch<E>
java.lang.Object
lu.kbra.pclib.concurrency.ListTriggerLatch<E>
- All Implemented Interfaces:
Iterable<E>,GenericTriggerLatch<E>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) booleanintgetValue()booleanisEmpty()iterator()booleanjoin()latch(GenericTriggerLatch<?> latch) intsize()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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ListTriggerLatch
-
ListTriggerLatch
-
-
Method Details
-
add
-
addAll
-
contains
-
getValue
public int getValue() -
isEmpty
public boolean isEmpty() -
iterator
-
join
public boolean join() -
latch
-
size
public int size() -
toString
-
trigger
- Specified by:
triggerin interfaceGenericTriggerLatch<E>
-
waitForChange
public boolean waitForChange() -
waitForChange
public boolean waitForChange(long timeout) -
waitForChange
-
waitForChange
-
waitForSet
public boolean waitForSet() -
waitForSet
public boolean waitForSet(long timeout) -
waitForSet
-
waitForSet
-