All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.lianjiatech.retrofit.spring.boot.degrade.DegradeProperty Maven / Gradle / Ivy

There is a newer version: 3.1.3
Show newest version
package com.github.lianjiatech.retrofit.spring.boot.degrade;

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

import com.github.lianjiatech.retrofit.spring.boot.degrade.resilience4j.GlobalResilience4jDegradeProperty;
import com.github.lianjiatech.retrofit.spring.boot.degrade.sentinel.GlobalSentinelDegradeProperty;

import lombok.Data;

/**
 * @author 陈添明
 */
@Data
public class DegradeProperty {

    /**
     * 熔断降级类型。默认none,表示不启用熔断降级
     */
    private String degradeType = RetrofitDegrade.NONE;

    /**
     * 全局Sentinel降级配置
     */
    @NestedConfigurationProperty
    private GlobalSentinelDegradeProperty globalSentinelDegrade = new GlobalSentinelDegradeProperty();

    /**
     * 全局Resilience4j降级配置
     */
    @NestedConfigurationProperty
    private GlobalResilience4jDegradeProperty globalResilience4jDegrade = new GlobalResilience4jDegradeProperty();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy