| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Options.Builder |
allowFallback(boolean allowFallback)
Sets whether to use or not, the major roads when other roads cannot be used.
|
Options |
build()
Builds the object of
Options class to be used for creation of IGRAInstance |
Options.Builder |
defaultCoordSys(CoordSys defaultCoordSys)
Sets the default
CoordSys to be used for processing the routing requests. |
Options.Builder |
isoTimeout(long isoTimeout)
Sets the amount of processing time (in milliseconds) before stopping an ISO routing request
if processing is not complete.
|
Options.Builder |
longProcessThreads(int longProcessThreads)
Sets the number of threads to be used for isochrone, matrix route and multipoint route requests.
|
Options.Builder |
matrixRouteTimeout(long matrixRouteTimeout)
Sets the amount of processing time (in milliseconds) before stopping a matrix routing request
if processing is not complete.
|
Options.Builder |
multiPointTimeout(long multiPointTimeout)
Sets the amount of processing time (in milliseconds) before stopping a multipoint routing request
if processing is not complete.
|
Options.Builder |
routeTimeout(long routeTimeout)
Sets the amount of processing time (in milliseconds) before stopping a point to point routing request
if processing is not complete.
|
Options.Builder |
shortProcessThreads(int shortProcessThreads)
Sets the number of threads to be used for point to point route requests.
|
Options.Builder |
updateFilePath(File updateFilePath)
Sets the
File object containing the path where are system updates are saved. |
public Options build() throws RoutingException
Options class to be used for creation of IGRAInstanceOptions consisting of all the values defined in builder.RoutingException - - If some illegal value is defined for any field.public Options.Builder routeTimeout(long routeTimeout)
routeTimeout - Timeout value (in milliseconds) for a point to point routing request.public Options.Builder multiPointTimeout(long multiPointTimeout)
multiPointTimeout - Timeout value (in milliseconds) for a multipoint routing request.public Options.Builder isoTimeout(long isoTimeout)
isoTimeout - Timeout value (in milliseconds) for an ISO routing request.public Options.Builder matrixRouteTimeout(long matrixRouteTimeout)
matrixRouteTimeout - Timeout value (in milliseconds) for a matrix routing request.public Options.Builder allowFallback(boolean allowFallback)
allowFallback - A boolean, true value means major roads will be used when other roads cannot be used, false otherwise.public Options.Builder shortProcessThreads(int shortProcessThreads)
shortProcessThreads - Number of threads to be used for point to point route requests.
It's value shouldn't be less then 0.public Options.Builder longProcessThreads(int longProcessThreads)
longProcessThreads - Number of threads to be used for isochrone, matrix route and multipoint route requests.
It's value shouldn't be less then 0.public Options.Builder defaultCoordSys(CoordSys defaultCoordSys) throws RoutingException
CoordSys to be used for processing the routing requests.defaultCoordSys - - default CoordSys.RoutingException - - RoutingException if invalid value is specified.public Options.Builder updateFilePath(File updateFilePath) throws RoutingException
File object containing the path where are system updates are saved.updateFilePath - - updates path.RoutingException - - RoutingException if invalid updateFilePath is specified.