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 serviceUrl)
Parses the host.
|
public boolean isAvailable(Object o, Method m, String beanKey)
FailOverInterceptorisAvailable 在接口中 FailOverInterceptoro - the om - the mbeanKey - the bean keypublic boolean isRecover(Object o, Method m, String beanKey)
FailOverInterceptorisRecover 在接口中 FailOverInterceptoro - the om - the mbeanKey - the bean keypublic boolean isDoFailover(Throwable t, String beanKey)
FailOverInterceptorisDoFailover 在接口中 FailOverInterceptort - the tbeanKey - the bean keyprotected com.baidu.jprotobuf.pbrpc.client.ha.lb.failover.SocketFailOverInterceptor.Host parseHost(String serviceUrl)
serviceUrl - the service urlCopyright © 2022 Baidu, Inc.. All rights reserved.