public long getDefaultTriggerMs() {
    List<TimeBasedTrigger> timeBasedTriggers = new ArrayList<>();

    if (window.getDefaultTrigger() != null) {
      timeBasedTriggers.addAll(getTimeBasedTriggers(window.getDefaultTrigger()));
    }
    if (window.getEarlyTrigger() != null) {
      timeBasedTriggers.addAll(getTimeBasedTriggers(window.getEarlyTrigger()));
    }
    if (window.getLateTrigger() != null) {
      timeBasedTriggers.addAll(getTimeBasedTriggers(window.getLateTrigger()));
    }

    LOG.info("Got {} time-based triggers", timeBasedTriggers.size());

    List<Long> candidateDurations = timeBasedTriggers.stream()
        .map(timeBasedTrigger -> timeBasedTrigger.getDuration().toMillis())
        .collect(Collectors.toList());

    return MathUtil.gcd(candidateDurations);
  }
Get the default triggering interval for this {@link WindowOperatorSpec}

This is defined as the GCD of all triggering intervals across all {@link TimeBasedTrigger}s configured for
this {@link WindowOperatorSpec}.

@return the default triggering interval
samza-core/src/main/java/org/apache/samza/operators/spec/WindowOperatorSpec.java