public class TransferUtilityOptions extends Object implements Serializable
TransferUtility
and TransferService
Create TransferUtilityOptions and pass it to TransferUtility
.
TransferUtilityOptions tuOptions = new TransferUtilityOptions();
tuOptions.setTransferServiceCheckTimeInterval(5 * 60 * 1000); // Scan for unfinished transfers every 5 minutes.
tuOptions.setTransferThreadPoolSize(10); // 10 threads for upload and download operations.
// Initializes TransferUtility
TransferUtility transferUtility = TransferUtility
.builder()
.s3Client(s3Client)
.context(getApplicationContext())
.transferUtilityConfiguration(tuConfig)
.build();
Constructor and Description |
---|
TransferUtilityOptions()
Constructor that sets the options to the
default values.
|
Modifier and Type | Method and Description |
---|---|
long |
getTransferServiceCheckTimeInterval()
Deprecated.
This feature is deprecated since
TransferService is
changed to only support network connectivity changes. |
int |
getTransferThreadPoolSize()
Retrieve the transfer thread pool size.
|
void |
setTransferServiceCheckTimeInterval(long transferServiceCheckTimeInterval)
Deprecated.
This feature is deprecated since
TransferService is
changed to only support network connectivity changes. |
void |
setTransferThreadPoolSize(int transferThreadPoolSize)
Set the transfer thread pool size.
|
public TransferUtilityOptions()
@Deprecated public long getTransferServiceCheckTimeInterval()
TransferService
is
changed to only support network connectivity changes.@Deprecated public void setTransferServiceCheckTimeInterval(long transferServiceCheckTimeInterval)
TransferService
is
changed to only support network connectivity changes.transferServiceCheckTimeInterval
- the transferServiceCheckTimeInterval to setpublic int getTransferThreadPoolSize()
public void setTransferThreadPoolSize(int transferThreadPoolSize)
transferThreadPoolSize
- the transferThreadPoolSize to setCopyright © 2018. All rights reserved.