package Ġcom . qz eng . downloader Ċ Ċ import Ġjava . util . concurrent . Executor Ċ import Ġjava . util . concurrent . Executors Ċ import Ġjava . util . concurrent . ThreadPoolExecutor Ċ Ċ object ĠDownload Manager Ġ{ ĊĠ Ġvar Ġnet Work Engine : ĠIN et Work Engine Ġ= ĠDefault Net Work Engine () ĊĊĠ Ġfun Ġset IN et Work Engine ( engine : ĠIN et Work Engine ) Ġ{ ĊĠĠĠ Ġthis . net Work Engine Ġ= Ġengine ĊĠ Ġ} ĊĊĠ Ġfun Ġdownload ( url : ĠString ) Ġ{ ĊĠĠĠ ĠExec utors . new Cached ThreadPool (). execute ({ ĊĠĠĠĠĠ Ġnet Work Engine . download ( url ) ĊĠĠĠ Ġ}) ĊĠ Ġ} Ċ }