Page Summary
-
TripModelOptionsconfigures active searches within theTripModelManager. -
It allows setting a refresh interval for trip updates, defaulting to 1000 milliseconds.
-
A
Builderclass is provided for creating and customizingTripModelOptionsinstances. -
getRefreshIntervalMillisretrieves the configured update frequency. -
toBuilderenables modification of existingTripModelOptions.
Configuration that affects active searches set in TripModelManager.
Nested Class Summary
| class | TripModelOptions.Builder | Builder for
TripModelOptions. |
|
Constant Summary
| long | DEFAULT_REFRESH_INTERVAL_MILLIS |
Public Constructor Summary
Public Method Summary
| static TripModelOptions.Builder |
builder()
|
| abstract long |
getRefreshIntervalMillis()
The refresh interval in milliseconds.
|
| abstract TripModelOptions.Builder |
Inherited Method Summary
Constants
public static final long DEFAULT_REFRESH_INTERVAL_MILLIS
Public Constructors
public TripModelOptions ()
Public Methods
public static TripModelOptions.Builder builder ()
public abstract long getRefreshIntervalMillis ()
The refresh interval in milliseconds. The trip will automatically refresh and notify registered callbacks of updates on this interval.