-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Config Class for BatchSizeWait (#518)
* Create Config Class for BatchSizeWait * Create Config Class for BatchSizeWait
- Loading branch information
1 parent
160ab71
commit 70ef56c
Showing
6 changed files
with
58 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...berg-sink/src/main/java/io/debezium/server/iceberg/batchsizewait/BatchSizeWaitConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.debezium.server.iceberg.batchsizewait; | ||
|
||
import io.debezium.config.CommonConnectorConfig; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
import io.smallrye.config.WithName; | ||
|
||
@ConfigRoot | ||
@ConfigMapping | ||
public interface BatchSizeWaitConfig { | ||
@WithName("debezium.source.max.queue.size") | ||
@WithDefault(CommonConnectorConfig.DEFAULT_MAX_QUEUE_SIZE + "") | ||
int sourceMaxQueueSize(); | ||
|
||
@WithName("debezium.source.max.batch.size") | ||
@WithDefault(CommonConnectorConfig.DEFAULT_MAX_BATCH_SIZE + "") | ||
int sourceMaxBatchSize(); | ||
|
||
@WithName("debezium.sink.batch.batch-size-wait.max-wait-ms") | ||
@WithDefault("300000") | ||
int batchSizeWaitMaxWaitMs(); | ||
|
||
@WithName("debezium.sink.batch.batch-size-wait.wait-interval-ms") | ||
@WithDefault("10000") | ||
int batchSizeWaitWaitIntervalMs(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters