package com.lingniu.ingest.protocol.jt808.config;

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

@ConfigurationProperties(prefix = "lingniu.ingest.jt808")
public class Jt808Properties {
    /** 是否启动 JT/T 808 TCP 监听。与 GB32960 独立，通常用于部标终端。 */
    private boolean enabled = false;
    /** JT808 默认监听端口；不要与 32960 端口共用。 */
    private int port = 808;
    /** Netty worker 线程数；0 表示使用框架默认值。 */
    private int workerThreads = 0;

    public boolean isEnabled() { return enabled; }
    public void setEnabled(boolean enabled) { this.enabled = enabled; }
    public int getPort() { return port; }
    public void setPort(int port) { this.port = port; }
    public int getWorkerThreads() { return workerThreads; }
    public void setWorkerThreads(int workerThreads) { this.workerThreads = workerThreads; }
}
