- // Notify observers about the match.
- mObservers.forEach(o -> o.onMatch(Layer3ClusterMatcher.this, matchSeq));
+// // Notify observers about the match.
+// mObservers.forEach(o -> o.onMatch(Layer3ClusterMatcher.this, matchSeq));
+ if (!matchSeq.get(matchSeq.size()-1).getTimestamp().isAfter(matchSeq.get(0).getTimestamp().
+ plusMillis(mInclusionTimeMillis))) {
+ // Notify observers about the match.
+ mObservers.forEach(o -> o.onMatch(Layer3ClusterMatcher.this, matchSeq));
+ }