|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.baidu.jprotobuf.pbrpc.client.ha.lb.failover.SocketFailOverInterceptor
public class SocketFailOverInterceptor
Socket fail over intercepter.
| 构造方法摘要 | |
|---|---|
SocketFailOverInterceptor()
|
|
| 方法摘要 | |
|---|---|
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 |
protected com.baidu.jprotobuf.pbrpc.client.ha.lb.failover.SocketFailOverInterceptor.Host |
parseHost(String beanKey)
|
void |
setRecoverServiceUrls(Map<String,String> recoverServiceUrls)
format as: localhost:80 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public SocketFailOverInterceptor()
| 方法详细信息 |
|---|
public void setRecoverServiceUrls(Map<String,String> recoverServiceUrls)
recoverServiceUrls -
public boolean isAvailable(Object o,
Method m,
String beanKey)
FailOverInterceptor 复制的描述
FailOverInterceptor 中的 isAvailable
public boolean isRecover(Object o,
Method m,
String beanKey)
FailOverInterceptor 复制的描述
FailOverInterceptor 中的 isRecover
public boolean isDoFailover(Throwable t,
String beanKey)
FailOverInterceptor 复制的描述
FailOverInterceptor 中的 isDoFailoverprotected com.baidu.jprotobuf.pbrpc.client.ha.lb.failover.SocketFailOverInterceptor.Host parseHost(String beanKey)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||