On-demand Rides and Deliveries Solution is currently available only to select partners. Contact sales to learn more.

TripModelManager

Stay organized with collections Save and categorize content based on your preferences.
public interface TripModelManager
Known Indirect Subclasses

Manages active trips for Journey Sharing.

Use getTripModel(String) to get a ConsumerTrip object used to monitor that trip.

Public Method Summary

abstract Set<TripModel>
getActiveTripModels()
Returns the set of all trips that are active.
abstract Set<TripModel>
getAllTripModels()
Returns the set of all trips managed by ConsumerTripManager that is active or has a strong reference.
abstract TripModel
getTripModel(String tripName)
Returns the ConsumerTrip object that can be used to track the given tripName.

Public Methods

public abstract Set<TripModel> getActiveTripModels ()

Returns the set of all trips that are active. A trip that is "active" means it has at least one callback registered and is receiving updates from Fleet Engine.

public abstract Set<TripModel> getAllTripModels ()

Returns the set of all trips managed by ConsumerTripManager that is active or has a strong reference. If there are no active strong references to an inactive trip, the trip object may be garbage collected.

public abstract TripModel getTripModel (String tripName)

Returns the ConsumerTrip object that can be used to track the given tripName. Will return an existing ConsumerTrip object for the given trip name when possible.

Parameters
tripName Name of the trip the returned object will track.
Returns
  • ConsumerTrip object