DeliveryTaskManager

  • DeliveryTaskManager enables the creation and modification of delivery tasks within the Fleet Engine system.

  • Methods within this class utilize Futures to handle asynchronous operations and may throw exceptions for communication issues or invalid operations.

  • createTask is used to initiate a new DeliveryTask based on the provided request.

  • updateTask allows for modifications to an existing DeliveryTask using a specific request.

public final class DeliveryTaskManager extends Object

TaskManager implementation for the delivery vertical. Enables creation and modification of tasks.

Methods in this class return a Future. This class may trigger an ExecutionException for the following cases:

Public Method Summary

ListenableFuture<DeliveryTask>
createTask(CreateDeliveryTaskRequest request)
Returns a Future that notifies of the outcome of an attempt to create a DeliveryTask for the provided task id.
ListenableFuture<DeliveryTask>
updateTask(UpdateDeliveryTaskRequest request)
Returns a Future that notifies of the outcome of an attempt to modify the existing DeliveryTask for the set task id.

Inherited Method Summary

Public Methods

public ListenableFuture<DeliveryTask> createTask (CreateDeliveryTaskRequest request)

Returns a Future that notifies of the outcome of an attempt to create a DeliveryTask for the provided task id.

public ListenableFuture<DeliveryTask> updateTask (UpdateDeliveryTaskRequest request)

Returns a Future that notifies of the outcome of an attempt to modify the existing DeliveryTask for the set task id.