package com.yupi.project.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "mqtt.logger")
public class MqttLoggerProperties {

    private boolean enabled = false;
    private String clientIdPrefix;
    private List<String> topics;
    private Async async = new Async();
    private Retention retention = new Retention();

    @Data
    public static class Async {
        private int corePoolSize = 1;
        private int maxPoolSize = 5;
        private int queueCapacity = 100;
        private String threadNamePrefix = "mqtt-log-async-";
    }

    @Data
    public static class Retention {
        private int days = 30;
    }
} 