Package io.debezium.connector.base
Class ChangeEventQueue.Builder<T extends Sizeable>
java.lang.Object
io.debezium.connector.base.ChangeEventQueue.Builder<T>
- Enclosing class:
ChangeEventQueue<T extends Sizeable>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Supplier<LoggingContext.PreviousContext> private intprivate intprivate longprivate Durationprivate QueueProvider<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()loggingContextSupplier(Supplier<LoggingContext.PreviousContext> loggingContextSupplier) maxBatchSize(int maxBatchSize) maxQueueSize(int maxQueueSize) maxQueueSizeInBytes(long maxQueueSizeInBytes) pollInterval(Duration pollInterval) queueProvider(QueueProvider<T> queueProvider) Sets a customQueueProviderimplementation to be used by theChangeEventQueue.
-
Field Details
-
pollInterval
-
maxQueueSize
private int maxQueueSize -
maxBatchSize
private int maxBatchSize -
loggingContextSupplier
-
maxQueueSizeInBytes
private long maxQueueSizeInBytes -
buffering
private boolean buffering -
queueProvider
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
pollInterval
-
maxQueueSize
-
maxBatchSize
-
loggingContextSupplier
public ChangeEventQueue.Builder<T> loggingContextSupplier(Supplier<LoggingContext.PreviousContext> loggingContextSupplier) -
maxQueueSizeInBytes
-
queueProvider
Sets a customQueueProviderimplementation to be used by theChangeEventQueue.If not set, a default provider will be used internally based on the max queue size. This allows for custom queue behavior or instrumentation if needed.
- Parameters:
queueProvider- the queue provider to use; may benull, in which case a default will be used- Returns:
- this builder instance for method chaining
-
buffering
-
build
-