public class SocketFailOverInterceptor extends Object implements FailOverInterceptor
| 构造器和说明 |
|---|
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
|
public void setRecoverServiceUrls(Map<String,String> recoverServiceUrls)
recoverServiceUrls - public boolean isAvailable(Object o, Method m, String beanKey)
FailOverInterceptorisAvailable 在接口中 FailOverInterceptorpublic boolean isRecover(Object o, Method m, String beanKey)
FailOverInterceptorisRecover 在接口中 FailOverInterceptorpublic boolean isDoFailover(Throwable t, String beanKey)
FailOverInterceptorisDoFailover 在接口中 FailOverInterceptorprotected com.baidu.jprotobuf.pbrpc.client.ha.lb.failover.SocketFailOverInterceptor.Host parseHost(String beanKey)
Copyright © 2015 Baidu, Inc.. All Rights Reserved.