Update apache-kafka-2/src/test/java/com/baeldung/kafka/message/ordering/ExtSeqWithTimeWindowIntegrationTest.java
Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
parent
9a76f1a637
commit
33b18c0ca4
|
@ -92,7 +92,7 @@ public class ExternalSequenceWithTimeWindowIntegrationTest {
|
|||
records.forEach(record -> {
|
||||
buffer.add(record.value());
|
||||
});
|
||||
while (buffer.size() > 0) {
|
||||
while (!buffer.isEmpty()) {
|
||||
if (System.nanoTime() - lastProcessedTime > BUFFER_PERIOD_NS) {
|
||||
processBuffer(buffer, receivedUserEventList);
|
||||
lastProcessedTime = System.nanoTime();
|
||||
|
|
Loading…
Reference in New Issue