Class ProducerRegistration<K,V>
- java.lang.Object
-
- org.sdase.commons.server.kafka.builder.ProducerRegistration<K,V>
-
public class ProducerRegistration<K,V> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProducerRegistration.FinalBuilder<K,V>
static interface
ProducerRegistration.KeySerializerBuilder<K,V>
static interface
ProducerRegistration.ProducerBuilder<K,V>
static interface
ProducerRegistration.TopicBuilder<K,V>
static class
ProducerRegistration.ValueSerializerBuilder<K,V>
-
Constructor Summary
Constructors Constructor Description ProducerRegistration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
ProducerRegistration.TopicBuilder<K,V>builder()
creates a new builderorg.apache.kafka.common.serialization.Serializer<K>
getKeySerializer()
ProducerConfig
getProducerConfig()
java.lang.String
getProducerConfigName()
TopicConfig
getTopic()
java.lang.String
getTopicName()
org.apache.kafka.common.serialization.Serializer<V>
getValueSerializer()
-
-
-
Method Detail
-
getProducerConfigName
public java.lang.String getProducerConfigName()
-
getTopic
public TopicConfig getTopic()
-
getTopicName
public java.lang.String getTopicName()
-
getKeySerializer
public org.apache.kafka.common.serialization.Serializer<K> getKeySerializer()
-
getValueSerializer
public org.apache.kafka.common.serialization.Serializer<V> getValueSerializer()
-
getProducerConfig
public ProducerConfig getProducerConfig()
-
builder
public static <K,V> ProducerRegistration.TopicBuilder<K,V> builder()
creates a new builder- Type Parameters:
K
- the Java type of the message keyV
- the Java type of the message value- Returns:
- builder
-
-