package com.its.pis.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.controller-comm")
public class ControllerCommConfig {

    private boolean commLogging = false;
    private int retrySeconds = 10;
    private int connectTimeout = 5;
    private int readerIdleTime = 0;
    private int writerIdleTime = 0;
    private int allIdleTime = 0;

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

}
