public class UploadObjectRequest extends AbstractPutObjectRequest
S3DataSource.UtilsNOOP| Constructor and Description |
|---|
UploadObjectRequest(String bucketName,
String key,
File file) |
UploadObjectRequest(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
UploadObjectRequest |
clone()
Returns a clone (as deep as possible) of this request object.
|
long |
getDiskLimit()
Returns the maximum size (in bytes) of additional disk space that will be
consumed for this request; or
Long.MAX_VALUE if there is no
limit. |
ExecutorService |
getExecutorService()
Returns a custom executor service for concurrent uploads; or null there
is no customization.
|
com.amazonaws.services.s3.internal.MultiFileOutputStream |
getMultiFileOutputStream()
Returns a custom multi-file output stream; or null if the default is to
be used.
|
long |
getPartSize()
Returns the part-size used for muti-part upload for this request.
|
UploadObjectObserver |
getUploadObjectObserver()
Returns a custom upload-object observer; or null there is no
customization.
|
UploadObjectRequest |
withDiskLimit(long diskLimit)
Configured the maximum disk space (in bytes) that will be consumed for
this request.
|
UploadObjectRequest |
withExecutorService(ExecutorService executorService)
Configure a custom executor service for concurrent uploads.
|
UploadObjectRequest |
withMultiFileOutputStream(com.amazonaws.services.s3.internal.MultiFileOutputStream multiFileOutputStream)
Configure a custom multi-file output stream; or null if the default is
to be used.
|
UploadObjectRequest |
withPartSize(long partSize)
Configured the part size for multi-part upload.
|
UploadObjectRequest |
withUploadObjectObserver(UploadObjectObserver uploadObjectObserver)
Configure a custom upload-object observer; or null if the default is to
be used.
|
getAccessControlList, getBucketName, getCannedAcl, getFile, getInputStream, getKey, getMetadata, getProgressListener, getRedirectLocation, getSSEAwsKeyManagementParams, getSSECustomerKey, getStorageClass, setAccessControlList, setBucketName, setCannedAcl, setFile, setInputStream, setKey, setMetadata, setProgressListener, setRedirectLocation, setSSEAwsKeyManagementParams, setSSECustomerKey, setStorageClass, setStorageClass, withAccessControlList, withBucketName, withCannedAcl, withFile, withInputStream, withKey, withMetadata, withProgressListener, withRedirectLocation, withSSEAwsKeyManagementParams, withSSECustomerKey, withStorageClass, withStorageClasscopyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic UploadObjectRequest(String bucketName, String key, InputStream input, ObjectMetadata metadata)
public UploadObjectRequest clone()
clone in class AbstractPutObjectRequestpublic long getPartSize()
public UploadObjectRequest withPartSize(long partSize)
MIN_PART_SIZE. This part size will be used as a reference for
the multi-part uploads but the physical part size may vary.public long getDiskLimit()
Long.MAX_VALUE if there is no
limit.public UploadObjectRequest withDiskLimit(long diskLimit)
partSize.public ExecutorService getExecutorService()
public UploadObjectRequest withExecutorService(ExecutorService executorService)
public com.amazonaws.services.s3.internal.MultiFileOutputStream getMultiFileOutputStream()
public UploadObjectRequest withMultiFileOutputStream(com.amazonaws.services.s3.internal.MultiFileOutputStream multiFileOutputStream)
public UploadObjectObserver getUploadObjectObserver()
public UploadObjectRequest withUploadObjectObserver(UploadObjectObserver uploadObjectObserver)
Copyright © 2014. All rights reserved.