public static class MultithreadedBatchConfig.MultithreadedBatchConfigBuilder extends AbstractBatchConfig.Builder<MultithreadedBatch,MultithreadedBatchConfig,MultithreadedBatchConfig.MultithreadedBatchConfigBuilder>
MultithreadedBatchConfig.batchListener, batchSize, batchTimeout, confidentialLogger, flushRetryDelay, maxAwaitTimeShutdown, maxFlushRetries, metricsListener, name| Constructor and Description |
|---|
MultithreadedBatchConfigBuilder() |
| Modifier and Type | Method and Description |
|---|---|
MultithreadedBatchConfig |
build()
Builds the config.
|
protected MultithreadedBatchConfig.MultithreadedBatchConfigBuilder |
self()
Helper method to return the current instance, with the correct type.
|
MultithreadedBatchConfig.MultithreadedBatchConfigBuilder |
withExecutorCapacity(int executorCapacity)
Sets the executor queue capacity.
|
MultithreadedBatchConfig.MultithreadedBatchConfigBuilder |
withNumberOfThreads(int numberOfThreads)
Sets the number of threads for the executor.
|
withBatchListener, withBatchSize, withBatchTimeout, withConfidentialLogger, withFlushRetryDelay, withMaxAwaitTimeShutdown, withMaxFlushRetries, withMetricsListener, withNamepublic MultithreadedBatchConfig.MultithreadedBatchConfigBuilder withNumberOfThreads(int numberOfThreads)
numberOfThreads - The number of threads.MultithreadedBatchConfig.getNumberOfThreads()public MultithreadedBatchConfig.MultithreadedBatchConfigBuilder withExecutorCapacity(int executorCapacity)
executorCapacity - The executor capacity.MultithreadedBatchConfig.getExecutorCapacity()protected MultithreadedBatchConfig.MultithreadedBatchConfigBuilder self()
AbstractBatchConfig.Builderself in class AbstractBatchConfig.Builder<MultithreadedBatch,MultithreadedBatchConfig,MultithreadedBatchConfig.MultithreadedBatchConfigBuilder>public MultithreadedBatchConfig build()
AbstractBatchConfig.Builderbuild in class AbstractBatchConfig.Builder<MultithreadedBatch,MultithreadedBatchConfig,MultithreadedBatchConfig.MultithreadedBatchConfigBuilder>Copyright © 2023 Feedzai. All rights reserved.