use of com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowClusterConfig in project spring-boot-student by wyh-spring-ecosystem-student.
the class InMemParamFlowRuleStore method preProcess.
@Override
protected ParamFlowRuleEntity preProcess(ParamFlowRuleEntity entity) {
if (entity != null && entity.isClusterMode()) {
ParamFlowClusterConfig config = entity.getClusterConfig();
if (config == null) {
config = new ParamFlowClusterConfig();
}
// Set cluster rule id.
config.setFlowId(entity.getId());
}
return entity;
}
use of com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowClusterConfig in project XHuiCloud by sindaZeng.
the class InMemParamFlowRuleStore method preProcess.
@Override
protected ParamFlowRuleEntity preProcess(ParamFlowRuleEntity entity) {
if (entity != null && entity.isClusterMode()) {
ParamFlowClusterConfig config = entity.getClusterConfig();
if (config == null) {
config = new ParamFlowClusterConfig();
}
// Set cluster rule id.
config.setFlowId(entity.getId());
}
return entity;
}
use of com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowClusterConfig in project RuoYi-Cloud-Plus by JavaLionLi.
the class InMemParamFlowRuleStore method preProcess.
@Override
protected ParamFlowRuleEntity preProcess(ParamFlowRuleEntity entity) {
if (entity != null && entity.isClusterMode()) {
ParamFlowClusterConfig config = entity.getClusterConfig();
if (config == null) {
config = new ParamFlowClusterConfig();
}
// Set cluster rule id.
config.setFlowId(entity.getId());
}
return entity;
}
Aggregations