public interface DownloadManager extends AppService
defaultServiceProperty
限定符和类型 | 字段和说明 |
---|---|
static String |
DOWNLOADSERVICE_THREAD_MAX
并发线程数
|
static String |
DOWNLOADSERVICE_THREADPOOL_NAME
线程池名称
|
ANALYTICS_SERVICE, CACHE_MANAGER, CONFIG_SERVICE, CRASH_SERVICE, DOWNLOAD_MANAGER, LOCATION_SERVICE, OBSERVER_MANAGER, ROUTE_SERVICE, SESSION_SERVICE, STATUS_SERVICE, UPGRADE_SERVICE
限定符和类型 | 方法和说明 |
---|---|
DownloadExecutor<?> |
getDownloadExecutor(String name)
获取一个下载执行器
|
void |
interruptAllDownloadExecutor()
中断所有下载执行器
|
void |
recoverAllAllDownloadExecutor()
恢复所有下载执行器
|
void |
registerExecutor(String name,
Class<? extends DownloadExecutor<?>> clazz,
int max)
注册一个下载执行器
|
defaultServiceProperty, getName, getServiceProperty, init, onCreate, onDestroy, setDebug
DownloadExecutor<?> getDownloadExecutor(String name)
name
- void registerExecutor(String name, Class<? extends DownloadExecutor<?>> clazz, int max)
name
- clazz
- max
- 同时下载数void recoverAllAllDownloadExecutor()
void interruptAllDownloadExecutor()