org.opentripplanner.updater.GraphWriterRunnable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.updater;
import org.opentripplanner.routing.graph.Graph;
/**
* The graph should only be modified by a runnable implementing this interface, executed by the
* GraphUpdaterManager.
* A few notes:
* - Don't spend more time in this runnable than necessary, it might block other graph writer runnables.
* - Be aware that while only one graph writer runnable is running to write to the graph, several
* request-threads might be reading the graph.
* - Be sure that the request-threads always see a consistent view of the graph while planning.
*
* @see GraphUpdaterManager
*/
public interface GraphWriterRunnable {
/**
* This function is executed to modify the graph.
*/
public void run(Graph graph);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy