Class ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier (2.44.1)

public abstract static class ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier extends ParallelCompositeUploadBlobWriteSessionConfig.Factory<Executor> implements Serializable

Class which will be used to supply an Executor where work will be submitted when performing a parallel composite upload. See Also: #withExecutorSupplier(ExecutorSupplier)

Inheritance

java.lang.Object > com.google.cloud.storage.ParallelCompositeUploadBlobWriteSessionConfig.Factory > ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier

Implements

Serializable

Static Methods

cachedPool()

public static ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier cachedPool()

Create a cached thread pool for submitting work See Also: #withExecutorSupplier(ExecutorSupplier)

Returns
Type Description
ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier

fixedPool(int poolSize)

public static ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier fixedPool(int poolSize)

Create a fixed size thread pool for submitting work See Also: #withExecutorSupplier(ExecutorSupplier)

Parameter
Name Description
poolSize int

the number of threads in the pool

Returns
Type Description
ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier

useExecutor(Executor executor)

public static ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier useExecutor(Executor executor)

Wrap an existing executor instance which will be used for submitting work

Choosing to use this supplier type will make your instance of StorageOptions unable to be serialized. See Also: #withExecutorSupplier(ExecutorSupplier)

Parameter
Name Description
executor Executor

the executor to use

Returns
Type Description
ParallelCompositeUploadBlobWriteSessionConfig.ExecutorSupplier