Package com.bakdata.kafka.streams
Class SerdeConfig
java.lang.Object
com.bakdata.kafka.streams.SerdeConfig
- All Implemented Interfaces:
SerializationConfig
Defines how to (de-)serialize the data in a Kafka Streams app
-
Constructor Summary
ConstructorsConstructorDescriptionSerdeConfig
(@NonNull Class<? extends org.apache.kafka.common.serialization.Serde> keySerde, @NonNull Class<? extends org.apache.kafka.common.serialization.Serde> valueSerde) -
Method Summary
Modifier and TypeMethodDescriptionCreate properties from thisSerializationConfig
withKeySerde
(@NonNull Class<? extends org.apache.kafka.common.serialization.Serde> keySerde) withValueSerde
(@NonNull Class<? extends org.apache.kafka.common.serialization.Serde> valueSerde)
-
Constructor Details
-
SerdeConfig
-
-
Method Details
-
createProperties
Description copied from interface:SerializationConfig
Create properties from thisSerializationConfig
- Specified by:
createProperties
in interfaceSerializationConfig
- Returns:
- Map of serialization configurations
-
withKeySerde
public SerdeConfig withKeySerde(@NonNull @NonNull Class<? extends org.apache.kafka.common.serialization.Serde> keySerde) - Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withValueSerde
public SerdeConfig withValueSerde(@NonNull @NonNull Class<? extends org.apache.kafka.common.serialization.Serde> valueSerde) - Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-