Module creek.kafka.serde
Interface KafkaSerdeProvider
-
- All Known Implementing Classes:
NativeKafkaSerdeProvider
public interface KafkaSerdeProvider
Base type for extensions that provide Kafka serdeCreek loads extensions using the standard
ServiceLoader
. To be loaded by Creek the provider must be registered in either themodule-info.java
file as aprovider
ofKafkaSerdeProvider
and/or have a suitable entry in theMETA-INFO.services
directory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> org.apache.kafka.common.serialization.Serde<T>
create(org.creekservice.api.kafka.metadata.KafkaTopicDescriptor.PartDescriptor<T> part)
Get the serde for the supplied Kafka recordpart
.org.creekservice.api.kafka.metadata.SerializationFormat
format()
-
-
-
Method Detail
-
format
org.creekservice.api.kafka.metadata.SerializationFormat format()
- Returns:
- the unique serialization format the serde provides.
-
create
<T> org.apache.kafka.common.serialization.Serde<T> create(org.creekservice.api.kafka.metadata.KafkaTopicDescriptor.PartDescriptor<T> part)
Get the serde for the supplied Kafka recordpart
.Serde.configure(java.util.Map<java.lang.String, ?>, boolean)
will be called on the returned serde.- Type Parameters:
T
- the type of the part.- Parameters:
part
- the part descriptor- Returns:
- the serde to use to serialize and deserialize the part.
-
-