Duration dur = Duration.between(firstInst, lastInst);
duration = dur.toMillis();
// Check duration --- should be below 15 seconds
if (duration > TriggerTrafficExtractor.INCLUSION_WINDOW_MILLIS) {
while (duration > TriggerTrafficExtractor.INCLUSION_WINDOW_MILLIS && iterFirst.hasNext()) {
// that means we have to move to the next trigger
Duration dur = Duration.between(firstInst, lastInst);
duration = dur.toMillis();
// Check duration --- should be below 15 seconds
if (duration > TriggerTrafficExtractor.INCLUSION_WINDOW_MILLIS) {
while (duration > TriggerTrafficExtractor.INCLUSION_WINDOW_MILLIS && iterFirst.hasNext()) {
// that means we have to move to the next trigger