public class TransferManagerConfiguration extends Object
TransferManager
processes requests.
The best configuration settings depend on network configuration, latency and bandwidth. The default configuration settings are suitable for most applications, but this class enables developers to experiment with different configurations and tune transfer manager performance.
构造器和说明 |
---|
TransferManagerConfiguration() |
限定符和类型 | 方法和说明 |
---|---|
long |
getMinimumUploadPartSize()
Returns the minimum part size for upload parts.
|
long |
getMultipartUploadThreshold()
Returns the size threshold in bytes for when to use multipart uploads.
|
void |
setMinimumUploadPartSize(long minimumUploadPartSize)
Sets the minimum part size for upload parts.
|
void |
setMultipartUploadThreshold(int multipartUploadThreshold)
Sets the size threshold in bytes for when to use multipart uploads.
|
public long getMinimumUploadPartSize()
public void setMinimumUploadPartSize(long minimumUploadPartSize)
minimumUploadPartSize
- The minimum part size for upload parts.public long getMultipartUploadThreshold()
Multipart uploads are easier to recover from and potentially faster than single part uploads, especially when the upload parts can be uploaded in parallel as with files. Due to additional network communication, small uploads should use a single connection for the upload.
public void setMultipartUploadThreshold(int multipartUploadThreshold)
Multipart uploads are easier to recover from and potentially faster than single part uploads, especially when the upload parts can be uploaded in parallel as with files. Due to additional network communication, small uploads should use a single connection for the upload.
multipartUploadThreshold
- The size threshold in bytes for when to use multipart
uploads.Copyright © 2016. All rights reserved.