Class ProducerRegistration.ValueSerializerBuilder<K,V>
java.lang.Object
org.sdase.commons.server.kafka.builder.ProducerRegistration.ValueSerializerBuilder<K,V>
- Enclosing class:
- ProducerRegistration<K,
V>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
<V2> ProducerRegistration.FinalBuilder<K,
V2> withValueSerializer
(org.apache.kafka.common.serialization.Serializer<V2> valueSerializer)
-
Method Details
-
withValueSerializer
public <V2> ProducerRegistration.FinalBuilder<K,V2> withValueSerializer(org.apache.kafka.common.serialization.Serializer<V2> valueSerializer) - Type Parameters:
V2
- the Java type of the message value- Parameters:
valueSerializer
- define a new value serializer- Returns:
- builder
-
build
-