package com.hiveops.aria.kafka;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.kafka.config.TopicBuilder;

@Configuration
public class AriaKafkaConfig {

    public static final String TOPIC_THREATS = "hiveops.aria.threats";

    @Bean
    public NewTopic ariaThreatsTopic() {
        return TopicBuilder.name(TOPIC_THREATS).partitions(1).replicas(1).build();
    }
}
