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:
UnsupportedOperationExceptionif the method is called after the DeliveryTaskManager has been cleaned up.StatusRuntimeExceptionif there is a problem related to communicating with FleetEngine.
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.