类 AbstractRepository
java.lang.Object
com.github.xiaoymin.knife4j.aggre.core.ext.PoolingConnectionManager
com.github.xiaoymin.knife4j.aggre.repository.AbstractRepository
- 所有已实现的接口:
RouteRepository
public abstract class AbstractRepository
extends PoolingConnectionManager
implements RouteRepository
- 从以下版本开始:
- 2.0.8
- 作者:
- xiaoymin@foxmail.com 2020/11/16 22:36
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleancheckRoute(String header) 校验请求Header是否正确根据请求header获取获取所有protected voidheartRepeatClear(List<String> settingRouteIds) Nacos用户可能存在修改服务配置的情况,需要nacosSetting配置与缓存的routeMap做一次compare,避免出现重复服务的情况出现 https://gitee.com/xiaoym/knife4j/issues/I3ZPUS从类继承的方法 com.github.xiaoymin.knife4j.aggre.core.ext.PoolingConnectionManager
getClient, getClient, getRequestConfig从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.github.xiaoymin.knife4j.aggre.core.RouteRepository
close, getAuth, getAuthByRoute, start
-
字段详细资料
-
HEART_BEAT_DURATION
心跳检测间隔(30s) -
routeMap
-
-
构造器详细资料
-
AbstractRepository
public AbstractRepository()
-
-
方法详细资料
-
checkRoute
从接口复制的说明:RouteRepository校验请求Header是否正确- 指定者:
checkRoute在接口中RouteRepository- 参数:
header- 请求头- 返回:
- 是否校验成功
-
getRoute
从接口复制的说明:RouteRepository根据请求header获取- 指定者:
getRoute在接口中RouteRepository- 参数:
header- 请求头- 返回:
- 服务Route
-
getRoutes
从接口复制的说明:RouteRepository获取所有- 指定者:
getRoutes在接口中RouteRepository- 返回:
- 返回所有Routes服务
-
heartRepeatClear
Nacos用户可能存在修改服务配置的情况,需要nacosSetting配置与缓存的routeMap做一次compare,避免出现重复服务的情况出现 https://gitee.com/xiaoym/knife4j/issues/I3ZPUS- 参数:
settingRouteIds-
-