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

org.opentripplanner.model.TimetableSnapshotProvider Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.model;

/**
 * This interface is used to retrieve the current instance of the TimetableSnapshot. Any provider
 * implementing this interface is responsible for thread-safe access to the latest valid
 * instance of the {@code TimetableSnapshot}.
 *
 * Note that in the long run we don't necessarily want multiple snapshot providers. Ideally we'll just have one way of
 * handling these concurrency concerns, so no need for an interface and multiple implementations. But in the short term,
 * handling both GTFS-RT and SIRI has led to two different providers.
 */
public interface TimetableSnapshotProvider {
    TimetableSnapshot getTimetableSnapshot();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy