-
- All Implemented Interfaces:
public class UpdateRequest.Builder extends OtaRequest.Builder<B, REQ, RESP>
-
-
Method Summary
Modifier and Type Method Description UpdateRequest
build()
Builds an area update request. UpdateRequest.Builder
setCurrentLocation(double latitude, double longitude)
Set the user's current location. UpdateRequest.Builder
of(UpdateRequest request)
Quickly create a builder instance by copying an existing UpdateRequest. UpdateRequest.Builder
setTimeout(Integer timeout)
Set the maximal time(in seconds) allowed for the OTA data update to finish. -
-
Method Detail
-
build
UpdateRequest build()
Builds an area update request.
-
setCurrentLocation
UpdateRequest.Builder setCurrentLocation(double latitude, double longitude)
Set the user's current location. This attribute is REQUIRED.
- Parameters:
latitude
- current location latitudelongitude
- current location longitude
-
of
UpdateRequest.Builder of(UpdateRequest request)
Quickly create a builder instance by copying an existing UpdateRequest.
-
setTimeout
UpdateRequest.Builder setTimeout(Integer timeout)
Set the maximal time(in seconds) allowed for the OTA data update to finish.
Adm service would aborts this OTA data update if its total time cost reaches this threshold. By default this setting's value is 1800 seconds(30 minutes).
- Parameters:
timeout
- the maximal allowed time of OTA update
-
-
-
-