novoda / download-manager

A library that handles long-running downloads, handling the network interactions and retrying downloads automatically after failures
Apache License 2.0
483 stars 63 forks source link

DLM-472/Create BatchBuilder from Batch #478

Closed Mecharyry closed 5 years ago

Mecharyry commented 5 years ago

Problem

As mentioned in #472, clients may want to be able to add additional files to a download batch builder outside a single flow. At the moment Batch is immutable, which is good, but a builder can only be created and used in a single step.

Solution

Create a mechanism where clients can create a BatchBuilder from a given batch, allowing them to append additional files before posting to the download-manager.