gnodet commented on code in PR #14222:
URL: https://github.com/apache/camel/pull/14222#discussion_r1609646189
##########
core/camel-core-processor/src/main/java/org/apache/camel/processor/resequencer/ResequencerEngine.java:
##########
@@ -110,6 +120,30 @@ public synchronized int size() {
return sequence.size();
}
+ public void waitUntil(Predicate<Sequence<?>> pred) throws
InterruptedException {
+ CountDownLatch latch;
+ synchronized (this) {
Review Comment:
Yes, I agree to the general rule you outline. However, I did not want to
rewrite the whole resequenced engine synchronisation, so this PR aims to
integrate with the current way. I'd suggest to use another PR to rework the
synchronisation of the `ResequencerEngine` if needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]