final class DownloadTaskImpl extends java.lang.Object implements ServiceUtils.RetryableS3DownloadTask
Modifier and Type | Field and Description |
---|---|
private DownloadImpl |
download |
private GetObjectRequest |
getObjectRequest |
private AmazonS3 |
s3 |
private SkipMd5CheckStrategy |
skipMd5CheckStrategy |
Constructor and Description |
---|
DownloadTaskImpl(AmazonS3 s3,
DownloadImpl download,
GetObjectRequest getObjectRequest) |
Modifier and Type | Method and Description |
---|---|
S3Object |
getS3ObjectStream()
User defines how to get the S3Object from S3 for this RetryableS3DownloadTask.
|
boolean |
needIntegrityCheck()
User defines whether integrity check is needed for this RetryableS3DownloadTask.
|
private final AmazonS3 s3
private final DownloadImpl download
private final GetObjectRequest getObjectRequest
private final SkipMd5CheckStrategy skipMd5CheckStrategy
DownloadTaskImpl(AmazonS3 s3, DownloadImpl download, GetObjectRequest getObjectRequest)
public S3Object getS3ObjectStream()
ServiceUtils.RetryableS3DownloadTask
getS3ObjectStream
in interface ServiceUtils.RetryableS3DownloadTask
public boolean needIntegrityCheck()
ServiceUtils.RetryableS3DownloadTask
needIntegrityCheck
in interface ServiceUtils.RetryableS3DownloadTask