public class Config extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
DUBBO_REFERENCE_PREFIX |
| 构造器和说明 |
|---|
Config() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
checkFunctionSwitch(com.alibaba.dubbo.rpc.Invoker<?> invoker,
com.alibaba.dubbo.rpc.Invocation invocation)
获取当前调用的服务方法是否开启了服务降级功能
|
static int |
getBreakLimit(com.alibaba.dubbo.rpc.Invoker<?> invoker,
com.alibaba.dubbo.rpc.Invocation invocation) |
static int |
getBreakLimit(StringBuffer interfaceConfig,
StringBuffer methodConfig)
获取某个方法或者某个接口的判定为出现异常的次数
提供在配置中心和dubbo.properties两种途径配置
如果两个地方均有配置,配置中心的为准
|
static StringBuffer |
getInterfacePropertyName(com.alibaba.dubbo.rpc.Invoker<?> invoker) |
static InetAddress |
getLocalAddress() |
static StringBuffer |
getMethodPropertyName(com.alibaba.dubbo.rpc.Invoker<?> invoker,
com.alibaba.dubbo.rpc.Invocation invocation) |
static int |
getRetryFrequency(com.alibaba.dubbo.rpc.Invoker<?> invoker,
com.alibaba.dubbo.rpc.Invocation invocation) |
static int |
getRetryFrequency(StringBuffer interfaceConfig,
StringBuffer methodConfig)
获取某个方法或者接口重试频次,及每出现多少次异常,就重试一次远程接口
提供在配置中心和dubbo.properties两种途径配置
如果两个地方均有配置,配置中心的为准
|
static boolean |
getSwitch(StringBuffer interfaceConfig,
StringBuffer methodConfig)
获取某个方法或者接口是否开启服务降级的功能,默认是开启降级功能
提供在配置中心和dubbo.properties两种途径配置
如果两个地方均有配置,配置中心的为准
|
public static boolean checkFunctionSwitch(com.alibaba.dubbo.rpc.Invoker<?> invoker,
com.alibaba.dubbo.rpc.Invocation invocation)
invoker - invocation - public static int getBreakLimit(com.alibaba.dubbo.rpc.Invoker<?> invoker,
com.alibaba.dubbo.rpc.Invocation invocation)
public static StringBuffer getInterfacePropertyName(com.alibaba.dubbo.rpc.Invoker<?> invoker)
public static StringBuffer getMethodPropertyName(com.alibaba.dubbo.rpc.Invoker<?> invoker, com.alibaba.dubbo.rpc.Invocation invocation)
public static InetAddress getLocalAddress()
public static int getBreakLimit(StringBuffer interfaceConfig, StringBuffer methodConfig)
interfaceConfig - methodConfig - public static boolean getSwitch(StringBuffer interfaceConfig, StringBuffer methodConfig)
interfaceConfig - methodConfig - public static int getRetryFrequency(com.alibaba.dubbo.rpc.Invoker<?> invoker,
com.alibaba.dubbo.rpc.Invocation invocation)
public static int getRetryFrequency(StringBuffer interfaceConfig, StringBuffer methodConfig)
interfaceConfig - methodConfig - Copyright © 2015. All rights reserved.