Package org.camunda.bpm.engine.impl.util
Class SingleConsumerCondition
java.lang.Object
org.camunda.bpm.engine.impl.util.SingleConsumerCondition
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
-
Method Summary
-
Constructor Details
-
SingleConsumerCondition
-
-
Method Details
-
signal
public void signal() -
await
public void await(long millis)
-