public interface StrategyInterceptor extends FailOverEvent
FailOverEventFailOverEvent| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterElection(String electKey,
org.aopalliance.intercept.MethodInvocation invocation)
after strategy elect method invoke.
|
void |
beforeElection(LoadBalanceStrategy lbStratety,
org.aopalliance.intercept.MethodInvocation invocation)
before strategy elect method invoke.
|
String |
elect(org.aopalliance.intercept.MethodInvocation invocation)
do elect action.
|
boolean |
isDoElection(org.aopalliance.intercept.MethodInvocation invocation)
return if need to do elect method.
|
onTargetFailed, onTargetRecovervoid beforeElection(LoadBalanceStrategy lbStratety, org.aopalliance.intercept.MethodInvocation invocation)
lbStratety - LoadBalanceStrategyinvocation - MethodInvocationvoid afterElection(String electKey, org.aopalliance.intercept.MethodInvocation invocation)
electKey - elect returned target nameinvocation - MethodInvocationboolean isDoElection(org.aopalliance.intercept.MethodInvocation invocation)
invocation - MethodInvocationString elect(org.aopalliance.intercept.MethodInvocation invocation)
invocation - MethodInvocationCopyright © 2022 Baidu, Inc.. All rights reserved.