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:
UnsupportedOperationException
if the method is called after the DeliveryVehicleManager has been cleaned up.StatusRuntimeException
if 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.