AI-generated Key Takeaways
-
DeliveryVehicleManagerenables the creation, modification, and retrieval of a single delivery vehicle within the Fleet Engine system. -
Methods in this class utilize
Futureobjects for asynchronous operations, potentially throwing exceptions likeUnsupportedOperationExceptionorStatusRuntimeExceptionin case of errors. -
The
createVehicle()method initiates the creation of aDeliveryVehicleand returns aFutureto track the operation's outcome. -
The
getVehicle()method attempts to retrieve aDeliveryVehiclebased on a set vehicle ID and returns aFuturefor result tracking.
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.