@BetaApi public static class TransferManagerConfig.Builder extends Object
TransferManagerConfig
Modifier and Type | Method and Description |
---|---|
TransferManagerConfig |
build()
Creates a TransferManagerConfig object.
|
TransferManagerConfig.Builder |
setAllowDivideAndConquer(boolean allowDivideAndConquer)
Whether to allow Transfer Manager to perform chunked Uploads/Downloads if it determines
chunking will be beneficial
|
TransferManagerConfig.Builder |
setMaxWorkers(int maxWorkers)
Maximum amount of workers to be allocated to perform work in Transfer Manager
|
TransferManagerConfig.Builder |
setPerWorkerBufferSize(int perWorkerBufferSize)
Buffer size allowed to each worker
|
TransferManagerConfig.Builder |
setStorageOptions(StorageOptions storageOptions)
Storage options that Transfer Manager will use to interact with Google Cloud Storage
|
@BetaApi public TransferManagerConfig.Builder setMaxWorkers(int maxWorkers)
Default Value: 2 *
Runtime.getRuntime()
.
availableProcessors()
TransferManagerConfig.getMaxWorkers()
@BetaApi public TransferManagerConfig.Builder setPerWorkerBufferSize(int perWorkerBufferSize)
Default Value: 16MiB
TransferManagerConfig.getPerWorkerBufferSize()
@BetaApi public TransferManagerConfig.Builder setAllowDivideAndConquer(boolean allowDivideAndConquer)
Default Value: false
TransferManagerConfig.isAllowDivideAndConquer()
@BetaApi public TransferManagerConfig.Builder setStorageOptions(StorageOptions storageOptions)
Default Value: StorageOptions.getDefaultInstance()
TransferManagerConfig.getStorageOptions()
@BetaApi public TransferManagerConfig build()
TransferManagerConfig
Copyright © 2023 Google LLC. All rights reserved.