DBZ-7110 Use better name for DebeziumEngine.Builder implementation

This commit is contained in:
Vojtech Juranek 2023-11-06 14:28:24 +01:00 committed by Jiri Pechanec
parent c34cf6920c
commit cf7f0f3801
4 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ public class ConvertingEngineBuilder<R> implements Builder<R> {
}
ConvertingEngineBuilder(KeyValueHeaderChangeEventFormat<?, ?, ?> format) {
this.delegate = new EmbeddedEngine.BuilderImpl();
this.delegate = new EmbeddedEngine.EngineBuilder();
this.formatKey = format.getKeyFormat();
this.formatValue = format.getValueFormat();
this.formatHeader = format.getHeaderFormat();

View File

@ -84,7 +84,7 @@
@ThreadSafe
public final class EmbeddedEngine implements DebeziumEngine<SourceRecord>, EmbeddedEngineConfig {
public static final class BuilderImpl implements Builder<SourceRecord> {
public static final class EngineBuilder implements Builder<SourceRecord> {
private Configuration config;
private DebeziumEngine.ChangeConsumer<SourceRecord> handler;
private ClassLoader classLoader;

View File

@ -404,7 +404,7 @@ public void connectorStopped() {
};
// Create the connector ...
EmbeddedEngine.Builder builder = new EmbeddedEngine.BuilderImpl();
EmbeddedEngine.Builder builder = new EmbeddedEngine.EngineBuilder();
builder.using(config.asProperties())
.notifying(getConsumer(isStopRecord, recordArrivedListener, ignoreRecordsAfterStop))
.using(this.getClass().getClassLoader())

View File

@ -126,7 +126,7 @@ public void doSetup() {
.build();
Consumer<SourceRecord> recordArrivedListener = this::processRecord;
this.engine = (EmbeddedEngine) new EmbeddedEngine.BuilderImpl()
this.engine = (EmbeddedEngine) new EmbeddedEngine.EngineBuilder()
.using(config.asProperties())
.notifying((record) -> {
if (!engine.isRunning() || Thread.currentThread().isInterrupted()) {