docs: public OnChangeWithKeepAliveSubscriptionQos setMaxIntervalMs(long maxIntervalMs) {
          if (maxIntervalMs < MIN_MAX_INTERVAL_MS) {
              this.maxIntervalMs = MIN_MAX_INTERVAL_MS;
              logger.warn("maxIntervalMs < MIN_MAX_INTERVAL_MS. Using MIN_MAX_INTERVAL_MS: {}", MIN_MAX_INTERVAL_MS);
          } else if (maxIntervalMs > MAX_MAX_INTERVAL_MS) {
              this.maxIntervalMs = MAX_MAX_INTERVAL_MS;
              logger.warn("maxIntervalMs > MAX_MAX_INTERVAL_MS. Using MAX_MAX_INTERVAL_MS: {}", MAX_MAX_INTERVAL_MS);
          } else {
              this.maxIntervalMs = maxIntervalMs;
          }
  
          if (this.maxIntervalMs < this.getMinIntervalMs()) {
              this.maxIntervalMs = this.getMinIntervalMs();
          }
  
          if (alertAfterIntervalMs != 0 && alertAfterIntervalMs < this.maxIntervalMs) {
              alertAfterIntervalMs = this.maxIntervalMs;
              logger.warn("alertAfterIntervalMs < maxIntervalMs. Setting alertAfterIntervalMs = maxIntervalMs: {}",
                          this.maxIntervalMs);
          }
          return this;
      }