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

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

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

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.github.lianjiatech.retrofit.spring.boot.core.Constants;

/**
 * @author [email protected]
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
@Documented
@Inherited
public @interface Resilience4jDegrade {

    /**
     * 是否开启
     *
     * @return enable
     */
    boolean enable() default true;

    /**
     * 根据该名称从#{@link CircuitBreakerConfigRegistry}中获取CircuitBreakerConfig,作为当前接口或者方法的熔断配置
     *
     * @return circuitBreakerConfigName
     */
    String circuitBreakerConfigName() default Constants.DEFAULT_CIRCUIT_BREAKER_CONFIG;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy