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, constructCallableConfig
public 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()
AbstractDownloadCallable
downloadAsSingleObject
in class AbstractDownloadCallable
protected void downloadInParallel() throws Exception
AbstractDownloadCallable
downloadInParallel
in class AbstractDownloadCallable
Exception
protected void setState(Transfer.TransferState transferState)
AbstractDownloadCallable
Transfer.TransferState
setState
in class AbstractDownloadCallable
public static void setTesting(boolean b)
Copyright © 2023. All rights reserved.