Package cn.lanink.gamecore.utils
Class Download.DownloadTask
java.lang.Object
java.util.concurrent.ForkJoinTask<Void>
java.util.concurrent.RecursiveAction
cn.lanink.gamecore.utils.Download.DownloadTask
- All Implemented Interfaces:
Serializable,Future<Void>
- Enclosing class:
- Download
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.RecursiveAction
exec, getRawResult, setRawResultMethods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
-
Field Details
-
strUrl
-
file
-
start
private final long start -
end
private final long end
-
-
Constructor Details
-
DownloadTask
-
-
Method Details
-
compute
protected void compute()- Specified by:
computein classRecursiveAction
-
getConnection
- Throws:
IOException
-