
org.reactivecommons.async.kafka.communications.topology.KafkaCustomizations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of async-kafka Show documentation
Show all versions of async-kafka Show documentation
Abstract your broker with semantic async messages
package org.reactivecommons.async.kafka.communications.topology;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class KafkaCustomizations {
private Map topics = new HashMap<>();
public static KafkaCustomizations withTopic(String topic, TopicCustomization customization) {
KafkaCustomizations customizations = new KafkaCustomizations();
customizations.getTopics().put(topic, customization);
return customizations;
}
public KafkaCustomizations addTopic(String topic, TopicCustomization customization) {
this.getTopics().put(topic, customization);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy