|
21 | 21 |
|
22 | 22 | import io.debezium.config.Configuration;
|
23 | 23 | import io.debezium.config.Field;
|
24 |
| -import io.debezium.embedded.EmbeddedEngine; |
| 24 | +import io.debezium.embedded.async.AsyncEmbeddedEngine; |
25 | 25 | import io.debezium.engine.spi.OffsetCommitPolicy;
|
26 | 26 | import org.apache.camel.RuntimeCamelException;
|
27 | 27 | import org.apache.camel.component.debezium.DebeziumConstants;
|
@@ -163,19 +163,19 @@ public Configuration createDebeziumConfiguration() {
|
163 | 163 | private Configuration createDebeziumEmbeddedEngineConfiguration() {
|
164 | 164 | final Configuration.Builder configBuilder = Configuration.create();
|
165 | 165 |
|
166 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.ENGINE_NAME, name); |
167 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.CONNECTOR_CLASS, connectorClass.getName()); |
168 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.OFFSET_STORAGE, offsetStorage); |
169 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.OFFSET_STORAGE_FILE_FILENAME, |
| 166 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.ENGINE_NAME, name); |
| 167 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.CONNECTOR_CLASS, connectorClass.getName()); |
| 168 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.OFFSET_STORAGE, offsetStorage); |
| 169 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.OFFSET_STORAGE_FILE_FILENAME, |
170 | 170 | offsetStorageFileName);
|
171 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.OFFSET_STORAGE_KAFKA_TOPIC, offsetStorageTopic); |
172 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.OFFSET_STORAGE_KAFKA_PARTITIONS, |
| 171 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.OFFSET_STORAGE_KAFKA_TOPIC, offsetStorageTopic); |
| 172 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.OFFSET_STORAGE_KAFKA_PARTITIONS, |
173 | 173 | offsetStoragePartitions);
|
174 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.OFFSET_STORAGE_KAFKA_REPLICATION_FACTOR, |
| 174 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.OFFSET_STORAGE_KAFKA_REPLICATION_FACTOR, |
175 | 175 | offsetStorageReplicationFactor);
|
176 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.OFFSET_COMMIT_POLICY, offsetCommitPolicy); |
177 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.OFFSET_FLUSH_INTERVAL_MS, offsetFlushIntervalMs); |
178 |
| - addPropertyIfNotNull(configBuilder, EmbeddedEngine.OFFSET_COMMIT_TIMEOUT_MS, offsetCommitTimeoutMs); |
| 176 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.OFFSET_COMMIT_POLICY, offsetCommitPolicy); |
| 177 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.OFFSET_FLUSH_INTERVAL_MS, offsetFlushIntervalMs); |
| 178 | + addPropertyIfNotNull(configBuilder, AsyncEmbeddedEngine.OFFSET_COMMIT_TIMEOUT_MS, offsetCommitTimeoutMs); |
179 | 179 |
|
180 | 180 | if (internalKeyConverter != null && internalValueConverter != null) {
|
181 | 181 | configBuilder.with("internal.key.converter", internalKeyConverter);
|
|
0 commit comments