public class TransferUtilityOptions
extends java.lang.Object
implements java.io.Serializable
TransferUtility
and TransferService
Create TransferUtilityOptions and pass it to TransferUtility
.
TransferUtilityOptions tuOptions = new TransferUtilityOptions();
tuOptions.setTransferThreadPoolSize(10); // 10 threads for upload and download operations.
// Initializes TransferUtility
TransferUtility transferUtility = TransferUtility
.builder()
.s3Client(s3Client)
.context(getApplicationContext())
.transferUtilityConfiguration(tuOptions)
.build();
Constructor and Description |
---|
TransferUtilityOptions()
Constructor that sets the options to the
default values.
|
TransferUtilityOptions(int transferThreadPoolSize,
TransferNetworkConnectionType transferNetworkConnectionType)
Constructor that sets the options to the
default values.
|
Modifier and Type | Method and Description |
---|---|
TransferNetworkConnectionType |
getTransferNetworkConnectionType()
Retrieve the transfer connection type.
|
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()
public TransferUtilityOptions(int transferThreadPoolSize, TransferNetworkConnectionType transferNetworkConnectionType)
transferThreadPoolSize
- number of threads in the pooltransferNetworkConnectionType
- type of network connection@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 setpublic TransferNetworkConnectionType getTransferNetworkConnectionType()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.