public class PresignUrlDownloadCallable extends AbstractDownloadCallable
dstfile, executor, futures| Constructor and Description |
|---|
PresignUrlDownloadCallable(ExecutorService executor,
File dstfile,
CountDownLatch latch,
PresignedUrlDownloadImpl download,
boolean isDownloadParallel,
ScheduledExecutorService timedExecutor,
long timeout,
AmazonS3 s3,
PresignedUrlDownloadRequest request,
long perRequestDownloadSize,
Long startByte,
Long endByte,
boolean resumeOnRetry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
downloadAsSingleObject()
Download the object from S3 in a single request
|
protected void |
downloadInParallel()
Download the object from S3 in multiple requests
|
protected void |
setState(Transfer.TransferState transferState)
Set the current
Transfer.TransferState |
static void |
setTesting(boolean b)
Used for testing purpose only.
|
call, constructCallableConfigpublic PresignUrlDownloadCallable(ExecutorService executor, File dstfile, CountDownLatch latch, PresignedUrlDownloadImpl download, boolean isDownloadParallel, ScheduledExecutorService timedExecutor, long timeout, AmazonS3 s3, PresignedUrlDownloadRequest request, long perRequestDownloadSize, Long startByte, Long endByte, boolean resumeOnRetry)
protected void downloadAsSingleObject()
AbstractDownloadCallabledownloadAsSingleObject in class AbstractDownloadCallableprotected void downloadInParallel()
throws Exception
AbstractDownloadCallabledownloadInParallel in class AbstractDownloadCallableExceptionprotected void setState(Transfer.TransferState transferState)
AbstractDownloadCallableTransfer.TransferStatesetState in class AbstractDownloadCallablepublic static void setTesting(boolean b)
Copyright © 2025. All rights reserved.