Class TransferManagerConfig.Builder
java.lang.Object
com.google.cloud.storage.transfermanager.TransferManagerConfig.Builder
- Enclosing class:
- TransferManagerConfig
Builds an instance of TransferManagerConfig
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a TransferManagerConfig object.setAllowDivideAndConquerDownload(boolean allowDivideAndConquerDownload) Whether to allow Transfer Manager to perform chunked Uploads/Downloads if it determines chunking will be beneficialsetAllowParallelCompositeUpload(boolean allowParallelCompositeUpload) Whether to allow Transfer Manager to perform Parallel Composite Uploads if it determines chunking will be beneficialsetMaxWorkers(int maxWorkers) Maximum amount of workers to be allocated to perform work in Transfer ManagersetPerWorkerBufferSize(int perWorkerBufferSize) Buffer size allowed to each workersetStorageOptions(StorageOptions storageOptions) Storage options that Transfer Manager will use to interact with Google Cloud Storage
-
Method Details
-
setMaxWorkers
Maximum amount of workers to be allocated to perform work in Transfer ManagerDefault Value:
2 *Runtime.getRuntime().availableProcessors()- Returns:
- the instance of Builder with the value for maxWorkers modified.
- See Also:
-
setPerWorkerBufferSize
Buffer size allowed to each workerDefault Value: 16MiB
- Returns:
- the instance of Builder with the value for maxWorkers modified.
- See Also:
-
setAllowDivideAndConquerDownload
public TransferManagerConfig.Builder setAllowDivideAndConquerDownload(boolean allowDivideAndConquerDownload) Whether to allow Transfer Manager to perform chunked Uploads/Downloads if it determines chunking will be beneficialDefault Value: false
- Returns:
- the instance of Builder with the value for allowDivideAndConquerDownload modified.
- See Also:
-
setAllowParallelCompositeUpload
public TransferManagerConfig.Builder setAllowParallelCompositeUpload(boolean allowParallelCompositeUpload) Whether to allow Transfer Manager to perform Parallel Composite Uploads if it determines chunking will be beneficialDefault Value: false
- Returns:
- the instance of Builder with the value for allowDivideAndConquerDownload modified.
- See Also:
-
setStorageOptions
Storage options that Transfer Manager will use to interact with Google Cloud StorageDefault Value:
StorageOptions.getDefaultInstance()- Returns:
- the instance of Builder with the value for storageOptions modified.
- See Also:
-
build
Creates a TransferManagerConfig object.- Returns:
TransferManagerConfig
-