io.streamthoughts.jikkou.kafka.reporter.KafkaChangeReporterConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jikkou-provider-kafka Show documentation
Show all versions of jikkou-provider-kafka Show documentation
Integration between Apache Kafka and Jikkou
The newest version!
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright (c) The original authors
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.streamthoughts.jikkou.kafka.reporter;
import io.streamthoughts.jikkou.core.config.ConfigProperty;
import io.streamthoughts.jikkou.core.config.Configuration;
import io.streamthoughts.jikkou.kafka.internals.KafkaUtils;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import org.jetbrains.annotations.NotNull;
/**
* This reporter can be used to send change results into a kafka topic as Cloud Event.
*/
public class KafkaChangeReporterConfig {
public static final ConfigProperty EVENT_SOURCE_CONFIG = ConfigProperty
.ofString("event.source")
.description("The 'source' of the event that will be generated");
public static final ConfigProperty KAFKA_TOPIC_CONFIG = ConfigProperty
.ofString("kafka.topic.name")
.description("The name of the topic the events will be sent");
public static final ConfigProperty KAFKA_TOPIC_CREATION_ENABLED_CONFIG = ConfigProperty
.ofBoolean("kafka.topic.creation.enabled")
.orElse(true)
.description("");
public static final ConfigProperty KAFKA_TOPIC_CREATION_DEFAULT_REPLICAS_CONFIG = ConfigProperty
.ofInt("kafka.topic.creation.defaultReplicationFactor")
.orElse(1)
.description("The default replication factor used for creating topic");
public static final ConfigProperty
© 2015 - 2025 Weber Informatics LLC | Privacy Policy