Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
DownloadThread(String url,
String fileName,
long offset,
long length,
CountDownLatch end,
org.apache.http.impl.client.CloseableHttpClient httpClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic DownloadThread(String url, String fileName, long offset, long length, CountDownLatch end, org.apache.http.impl.client.CloseableHttpClient httpClient)
url - 下载文件地址fileName - 另存文件名offset - 本线程下载偏移量length - 本线程下载长度Copyright © 2020. All rights reserved.