public class RetrofitDegradeRuleInitializer extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
| 限定符和类型 | 字段和说明 |
|---|---|
private DegradeProperty |
degradeProperty |
private static List<RetrofitDegradeRule> |
LIST |
private static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
RetrofitDegradeRuleInitializer(DegradeProperty degradeProperty) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addRetrofitDegradeRule(RetrofitDegradeRule degradeRule) |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
Handle an application event.
|
private static final org.slf4j.Logger logger
private final DegradeProperty degradeProperty
private static List<RetrofitDegradeRule> LIST
public RetrofitDegradeRuleInitializer(DegradeProperty degradeProperty)
public static void addRetrofitDegradeRule(RetrofitDegradeRule degradeRule)
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>event - the event to respond toCopyright © 2022. All rights reserved.