mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-11 06:40:53 +00:00
At least consume the last event
This commit is contained in:
1 parent
4bdcdf01f3
commit
4956ee0a0c
1 file changed
+2
-9
+2
-9
@@ -91,16 +91,9 @@ public class Replicator implements Runnable {
|
||||
try {
|
||||
Delivery delivery = consumer.nextDelivery();
|
||||
|
||||
/* Delivery is blocking, upon unblock we need to check if there
|
||||
* we has been stopped. If this is the case we assume that
|
||||
* we do not handle any new deliveries. It's a bit odd to have so
|
||||
* many checks for stopped event but we need to make sure that
|
||||
* we check this at every stage.
|
||||
/* Delivery is blocking, upon unblock we will not check for
|
||||
* stopping because we want to receive at least the last event.
|
||||
*/
|
||||
if (isBeingStopped()) {
|
||||
break;
|
||||
}
|
||||
|
||||
byte[] bytesFromMessage = delivery.getBody();
|
||||
checksPerformed = 0;
|
||||
// Set this object's class's class loader as context for de-serialization so that all exported classes
|
||||
|
||||
Reference in new issue
Block a user