package tech.easyflow.chatlog.config;

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

@Component
@ConfigurationProperties(prefix = "easyflow.chat.sync")
public class ChatSyncProperties {

    private boolean enabled = false;
    private int batchSize = 500;
    private long fixedDelay = 30000L;
    private int repairLookbackDays = 3;
    private int retentionMonths = 3;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public int getBatchSize() {
        return batchSize;
    }

    public void setBatchSize(int batchSize) {
        this.batchSize = batchSize;
    }

    public long getFixedDelay() {
        return fixedDelay;
    }

    public void setFixedDelay(long fixedDelay) {
        this.fixedDelay = fixedDelay;
    }

    public int getRepairLookbackDays() {
        return repairLookbackDays;
    }

    public void setRepairLookbackDays(int repairLookbackDays) {
        this.repairLookbackDays = repairLookbackDays;
    }

    public int getRetentionMonths() {
        return retentionMonths;
    }

    public void setRetentionMonths(int retentionMonths) {
        this.retentionMonths = retentionMonths;
    }
}
