package cn.reghao.tnb.sb.tomcat.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author reghao
 * @date 2024-09-04 20:38:44
 */
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "cluster")
public class ClusterProperties {
    private Boolean enable = false;

    /**
     * 接收配置  本地服务器的配置
     */
    private ReceiverConfig receiver = new ReceiverConfig();

    /**
     * 集群成员不包括自己
     */
    private MemberConfig[] member = new MemberConfig[0];
}
