public class MultithreadedBatchConfig extends AbstractBatchConfig<MultithreadedBatch,MultithreadedBatchConfig>
MultithreadedBatch.| Modifier and Type | Class and Description |
|---|---|
static class |
MultithreadedBatchConfig.MultithreadedBatchConfigBuilder
The builder for the
MultithreadedBatchConfig. |
AbstractBatchConfig.Builder<PB extends PdbBatch,BC extends AbstractBatchConfig<PB,?>,SELF extends AbstractBatchConfig.Builder<PB,BC,SELF>>| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_EXECUTOR_CAPACITY
Constant representing the default capacity of the batch flusher executor queue.
|
static int |
DEFAULT_NUMBER_OF_THREADS
Constant representing the default number of threads.
|
DEFAULT_BATCH_SIZE, DEFAULT_BATCH_TIMEOUT, DEFAULT_RETRY_INTERVAL, defaultBatchName, NO_RETRY| Modifier | Constructor and Description |
|---|---|
protected |
MultithreadedBatchConfig(MultithreadedBatchConfig.MultithreadedBatchConfigBuilder builder)
Constructor for this
MultithreadedBatchConfig. |
| Modifier and Type | Method and Description |
|---|---|
static MultithreadedBatchConfig.MultithreadedBatchConfigBuilder |
builder()
Returns the
builder to create an instance of this class. |
Class<MultithreadedBatch> |
getBatchClass()
Gets the concrete class of the
PdbBatch implementation that this config belongs to. |
int |
getExecutorCapacity()
Gets the capacity of the batch flusher executor queue.
|
int |
getNumberOfThreads()
Gets the number of threads to use for the batch flusher executor.
|
checkArgument, getBatchListener, getBatchSize, getBatchTimeout, getConfidentialLogger, getFlushRetryDelay, getMaxAwaitTimeShutdown, getMaxFlushRetries, getMetricsListener, getNamepublic static final int DEFAULT_NUMBER_OF_THREADS
getNumberOfThreads(),
Constant Field Valuespublic static final int DEFAULT_EXECUTOR_CAPACITY
getExecutorCapacity(),
Constant Field Valuesprotected MultithreadedBatchConfig(MultithreadedBatchConfig.MultithreadedBatchConfigBuilder builder)
MultithreadedBatchConfig.builder - The Builder for this config.public Class<MultithreadedBatch> getBatchClass()
BatchConfigPdbBatch implementation that this config belongs to.public int getNumberOfThreads()
Each thread creates and uses its own connection to the database.
public int getExecutorCapacity()
public static MultithreadedBatchConfig.MultithreadedBatchConfigBuilder builder()
builder to create an instance of this class.builder.Copyright © 2023 Feedzai. All rights reserved.