package com.its.op.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Slf4j
@Getter
@Setter
@ToString
@Configuration
@ConfigurationProperties(prefix = "application.cctv-server")
public class CctvServerConfig {

    private boolean enabled = true;
    private String  processId;
    private String  ipAddress;
    private int     port;
    private int     reconnectTime = 60; // 재접속 seconds

    @PostConstruct
    private void init() {
        //log.info("{}", this);
    }
}
