com.baidu.jprotobuf.pbrpc.client.ha.lb.failover
接口 FailOverInterceptor

所有已知实现类:
SocketFailOverInterceptor

public interface FailOverInterceptor

Load balance fail over intercepter interface.

从以下版本开始:
2.16
作者:
xiemalin
另请参见:
LoadBalanceProxyFactoryBean

方法摘要
 boolean isAvailable(Object o, Method m, String beanKey)
          return if target is available.
 boolean isDoFailover(Throwable t, String beanKey)
          return is catch exception need do fail over action
 boolean isRecover(Object o, Method m, String beanKey)
          return if failed target is recovered
 

方法详细信息

isAvailable

boolean isAvailable(Object o,
                    Method m,
                    String beanKey)
return if target is available.

参数:
o -
m -
beanKey -
返回:
true if available

isRecover

boolean isRecover(Object o,
                  Method m,
                  String beanKey)
return if failed target is recovered

参数:
o -
m -
beanKey -
返回:
true if recovered

isDoFailover

boolean isDoFailover(Throwable t,
                     String beanKey)
return is catch exception need do fail over action

参数:
t -
beanKey -
返回:
true if do fail over action


Copyright © 2015 Baidu, Inc.. All Rights Reserved.