com.amazonaws.services.s3.transfer
Class TransferManagerConfiguration

java.lang.Object
  extended by com.amazonaws.services.s3.transfer.TransferManagerConfiguration

public class TransferManagerConfiguration
extends Object

Configuration options for how 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.


Constructor Summary
TransferManagerConfiguration()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferManagerConfiguration

public TransferManagerConfiguration()
Method Detail

getMinimumUploadPartSize

public long getMinimumUploadPartSize()
Returns the minimum part size for upload parts. Decreasing the minimum part size causes multipart uploads to be split into a larger number of smaller parts. Setting this value too low has a negative effect on transfer speeds, causing extra latency and network communication for each part.

Returns:
The minimum part size for upload parts.

setMinimumUploadPartSize

public void setMinimumUploadPartSize(long minimumUploadPartSize)
Sets the minimum part size for upload parts. Decreasing the minimum part size causes multipart uploads to be split into a larger number of smaller parts. Setting this value too low has a negative effect on transfer speeds, causing extra latency and network communication for each part.

Parameters:
minimumUploadPartSize - The minimum part size for upload parts.

getMultipartUploadThreshold

public long getMultipartUploadThreshold()
Returns the size threshold in bytes for when to use multipart uploads. Uploads over this size will automatically use a multipart upload strategy, while uploads smaller than this threshold will use a single connection to upload the whole object.

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.

Returns:
The size threshold in bytes for when to use multipart uploads.

setMultipartUploadThreshold

public void setMultipartUploadThreshold(int multipartUploadThreshold)
Sets the size threshold in bytes for when to use multipart uploads. Uploads over this size will automatically use a multipart upload strategy, while uploads smaller than this threshold will use a single connection to upload the whole object.

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.

Parameters:
multipartUploadThreshold - The size threshold in bytes for when to use multipart uploads.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.