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

org.opentripplanner.updater.trip.TripUpdateSource Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package org.opentripplanner.updater.trip;

import com.google.transit.realtime.GtfsRealtime.TripUpdate;
import java.util.List;

public interface TripUpdateSource {
  /**
   * Wait for one message to arrive, and decode it into a List of TripUpdates. Blocking call.
   *
   * @return a {@code List} potentially containing TripUpdates for several different
   * trips, or null if an exception occurred while processing the message
   */
  List getUpdates();

  /**
   * @return true iff the last list with updates represent all updates that are active right now,
   * i.e. all previous updates should be disregarded
   */
  boolean getFullDatasetValueOfLastUpdates();

  String getFeedId();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy