forked from LianjiaTech/retrofit-spring-boot-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
134910b
commit fd59c1e
Showing
23 changed files
with
614 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
src/main/java/com/github/lianjiatech/retrofit/spring/boot/config/DegradeProperty.java
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
src/main/java/com/github/lianjiatech/retrofit/spring/boot/config/LogProperty.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/com/github/lianjiatech/retrofit/spring/boot/degrade/DegradeProperty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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(); | ||
} |
Oops, something went wrong.