All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.ext.siri.updater.SiriSXUpdaterParameters Maven / Gradle / Ivy

package org.opentripplanner.ext.siri.updater;

import org.opentripplanner.updater.PollingGraphUpdaterParameters;

public class SiriSXUpdaterParameters implements PollingGraphUpdaterParameters {
  private final String configRef;
  private final String feedId;
  private final String url;
  private final String requestorRef;
  private final int frequencySec;
  private final int earlyStartSec;
  private final int timeoutSec;
  private final boolean blockReadinessUntilInitialized;

  public SiriSXUpdaterParameters(
      String configRef,
      String feedId,
      String url,
      String requestorRef,
      int frequencySec,
      int earlyStartSec,
      int timeoutSec,
      boolean blockReadinessUntilInitialized
  ) {
    this.configRef = configRef;
    this.feedId = feedId;
    this.url = url;
    this.requestorRef = requestorRef;
    this.frequencySec = frequencySec;
    this.earlyStartSec = earlyStartSec;
    this.timeoutSec = timeoutSec;
    this.blockReadinessUntilInitialized = blockReadinessUntilInitialized;
  }

  String getFeedId() {
    return feedId;
  }

  public String getUrl() {
    return url;
  }

  @Override
  public int getFrequencySec() {
    return frequencySec;
  }

  @Override
  public String getConfigRef() {
    return configRef;
  }

  public String getRequestorRef() {
    return requestorRef;
  }

  public int getEarlyStartSec() {
    return earlyStartSec;
  }

  public int getTimeoutSec() {
    return timeoutSec;
  }

  public boolean blockReadinessUntilInitialized() {
    return blockReadinessUntilInitialized;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy