Class Debezium
java.lang.Object
org.springframework.integration.debezium.dsl.Debezium
Factory class for Debezium DSL components.
- Since:
- 6.2
- Author:
- Christian Tzolov, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionstatic DebeziumMessageProducerSpec
inboundChannelAdapter
(io.debezium.engine.DebeziumEngine.Builder<io.debezium.engine.ChangeEvent<byte[], byte[]>> debeziumEngineBuilder) Create an instance ofDebeziumMessageProducerSpec
for the providedDebeziumEngine.Builder
.static DebeziumMessageProducerSpec
inboundChannelAdapter
(Properties debeziumConfig) Create an instance ofDebeziumMessageProducerSpec
for the provided native debeziumProperties
and JSON serialization formats.static DebeziumMessageProducerSpec
inboundChannelAdapter
(Properties debeziumConfig, Class<? extends io.debezium.engine.format.SerializationFormat<byte[]>> messageFormat, Class<? extends io.debezium.engine.format.SerializationFormat<byte[]>> headerFormat) Create an instance ofDebeziumMessageProducerSpec
for the provided native debeziumProperties
and serialization formats.
-
Method Details
-
inboundChannelAdapter
Create an instance ofDebeziumMessageProducerSpec
for the provided native debeziumProperties
and JSON serialization formats.- Parameters:
debeziumConfig
-Properties
with required debezium engine and connector properties.- Returns:
- the spec.
-
inboundChannelAdapter
public static DebeziumMessageProducerSpec inboundChannelAdapter(Properties debeziumConfig, Class<? extends io.debezium.engine.format.SerializationFormat<byte[]>> messageFormat, Class<? extends io.debezium.engine.format.SerializationFormat<byte[]>> headerFormat) Create an instance ofDebeziumMessageProducerSpec
for the provided native debeziumProperties
and serialization formats.- Parameters:
debeziumConfig
-Properties
with required debezium engine and connector properties.messageFormat
-SerializationFormat
format for theChangeEvent
key and payload.headerFormat
-SerializationFormat
format for theChangeEvent
headers.- Returns:
- the spec.
-
inboundChannelAdapter
public static DebeziumMessageProducerSpec inboundChannelAdapter(io.debezium.engine.DebeziumEngine.Builder<io.debezium.engine.ChangeEvent<byte[], byte[]>> debeziumEngineBuilder) Create an instance ofDebeziumMessageProducerSpec
for the providedDebeziumEngine.Builder
.- Parameters:
debeziumEngineBuilder
- theDebeziumEngine.Builder
to use.- Returns:
- the spec.
-