Package com.google.cloud.storage
Class ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier
java.lang.Object
com.google.cloud.storage.ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ParallelCompositeUploadBlobWriteSessionConfig
@BetaApi
@Immutable
public abstract static class ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier
extends Object
implements Serializable
Class which will be used to supply an Executor where work will be submitted when performing a
parallel composite upload.
- Since:
- 2.28.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreate a cached thread pool for submitting workfixedPool
(int poolSize) Create a fixed size thread pool for submitting workuseExecutor
(Executor executor) Wrap an existing executor instance which will be used for submitting work
-
Method Details
-
cachedPool
Create a cached thread pool for submitting work- Since:
- 2.28.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
fixedPool
@BetaApi public static ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier fixedPool(int poolSize) Create a fixed size thread pool for submitting work- Parameters:
poolSize
- the number of threads in the pool- Since:
- 2.28.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
useExecutor
@BetaApi public static ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier useExecutor(Executor executor) Wrap an existing executor instance which will be used for submitting workChoosing to use this supplier type will make your instance of
StorageOptions
unable to be serialized.- Parameters:
executor
- the executor to use- Since:
- 2.28.0 This new api is in preview and is subject to breaking changes.
- See Also:
-