Page Summary
-
DeliveryVehicleManagerenables the creation, modification, and retrieval of delivery vehicles. -
Methods in this class use
Futuresto handle results and may throw exceptions for unsupported operations or communication issues with FleetEngine. -
createVehicle()creates aDeliveryVehiclefor a specified vehicle ID. -
getVehicle()retrieves theDeliveryVehicleassociated with a specific vehicle ID.
VehicleManager implementation for the delivery vertical. Enables creation, modification, and retrieval of a single vehicle.
Methods in this class return a Future. This
class may trigger an ExecutionException
for the following cases:
UnsupportedOperationExceptionif the method is called after the DeliveryVehicleManager has been cleaned up.StatusRuntimeExceptionif there is a problem related to communicating with FleetEngine.
Public Method Summary
| ListenableFuture<DeliveryVehicle> |
createVehicle()
Returns a Future that notifies of the outcome of an attempt to create a
DeliveryVehicle for the set vehicle id.
|
| ListenableFuture<DeliveryVehicle> |
getVehicle()
Returns a Future that notifies of the outcome of an attempt to retrieve a
DeliveryVehicle for the set vehicle id.
|
Inherited Method Summary
Public Methods
public ListenableFuture<DeliveryVehicle> createVehicle ()
Returns a Future that notifies of the outcome of an attempt to create a DeliveryVehicle for the set vehicle id.
public ListenableFuture<DeliveryVehicle> getVehicle ()
Returns a Future that notifies of the outcome of an attempt to retrieve a DeliveryVehicle for the set vehicle id.