-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DBZ-7698 Refactor to single factory interface/class/config
- Loading branch information
Showing
5 changed files
with
41 additions
and
10 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
31 changes: 31 additions & 0 deletions
31
...ebezium/connector/vitess/pipeline/txmetadata/VitessOrderedTransactionMetadataFactory.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,31 @@ | ||
/* | ||
* Copyright Debezium Authors. | ||
* | ||
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
|
||
package io.debezium.connector.vitess.pipeline.txmetadata; | ||
|
||
import io.debezium.config.Configuration; | ||
import io.debezium.pipeline.txmetadata.TransactionContext; | ||
import io.debezium.pipeline.txmetadata.TransactionStructMaker; | ||
import io.debezium.pipeline.txmetadata.spi.TransactionMetadataFactory; | ||
|
||
public class VitessOrderedTransactionMetadataFactory implements TransactionMetadataFactory { | ||
|
||
private final Configuration configuraiton; | ||
|
||
public VitessOrderedTransactionMetadataFactory(Configuration configuration) { | ||
this.configuraiton = configuration; | ||
} | ||
|
||
@Override | ||
public TransactionContext getTransactionContext() { | ||
return new VitessOrderedTransactionContext(); | ||
} | ||
|
||
@Override | ||
public TransactionStructMaker getTransactionStructMaker() { | ||
return new VitessOrderedTransactionStructMaker(configuraiton); | ||
} | ||
} |
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