public static class UploadManager.UploadRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UploadManager.UploadRequest.UploadRequestBuilder |
Constructor and Description |
---|
UploadRequest(PutObjectRequest putObjectRequest,
ExecutorService parallelUploadExecutorService,
boolean allowOverwrite,
ProgressReporter progressReporter) |
Modifier and Type | Method and Description |
---|---|
static UploadManager.UploadRequest.UploadRequestBuilder |
builder(File file)
Creates a new
UploadManager.UploadRequest.UploadRequestBuilder using the given file. |
static UploadManager.UploadRequest.UploadRequestBuilder |
builder(InputStream stream,
long contentLength)
Creates a new
UploadManager.UploadRequest.UploadRequestBuilder using the given stream and content length. |
@ConstructorProperties(value={"putObjectRequest","parallelUploadExecutorService","allowOverwrite","progressReporter"}) public UploadRequest(PutObjectRequest putObjectRequest, ExecutorService parallelUploadExecutorService, boolean allowOverwrite, ProgressReporter progressReporter)
public static UploadManager.UploadRequest.UploadRequestBuilder builder(InputStream stream, long contentLength)
Creates a new UploadManager.UploadRequest.UploadRequestBuilder
using the given stream and content length. The
stream and length will be used to create the final put object request.
Note, when providing an InputStream, callers can use StreamUtils
to help
create streams that can be read from in parallel (if multi-part upload is used), which
should decrease the time to upload the entire object.
stream
- The stream that should be uploaded.contentLength
- The content length of the object.public static UploadManager.UploadRequest.UploadRequestBuilder builder(File file)
Creates a new UploadManager.UploadRequest.UploadRequestBuilder
using the given file. The file and length
(derived from File.length()
) will be used to create the final put object request.
file
- The file that should be uploaded.Copyright © 2016–2024. All rights reserved.