Package org.camunda.bpm.engine.impl.util
Class SingleConsumerCondition
- java.lang.Object
-
- org.camunda.bpm.engine.impl.util.SingleConsumerCondition
-
public class SingleConsumerCondition extends java.lang.Object
MPSC Condition implementation.Implementation Notes:
await(long)
may spuriously return before the deadline is reached.- if
signal()
is called before the consumer thread callsawait(long)
, the next call toawait(long)
returns immediately.
-
-
Constructor Summary
Constructors Constructor Description SingleConsumerCondition(java.lang.Thread consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
await(long millis)
void
signal()
-