commit | author | age
|
a18bfa
|
1 |
package com.codingapi.tx.dubbo.balance; |
Z |
2 |
|
|
3 |
import com.alibaba.dubbo.common.URL; |
|
4 |
import com.alibaba.dubbo.rpc.Invocation; |
|
5 |
import com.alibaba.dubbo.rpc.Invoker; |
|
6 |
import com.alibaba.dubbo.rpc.cluster.loadbalance.RoundRobinLoadBalance; |
|
7 |
|
|
8 |
import java.util.List; |
|
9 |
|
|
10 |
/** |
|
11 |
* create by lorne on 2017/11/29 |
|
12 |
*/ |
|
13 |
public class RoundRobinLoadBalanceProxy extends RoundRobinLoadBalance { |
|
14 |
|
|
15 |
private LCNBalanceProxy lcnBalanceProxy = new LCNBalanceProxy(); |
|
16 |
|
|
17 |
@Override |
|
18 |
public <T> Invoker<T> select(List<Invoker<T>> invokers, URL url, Invocation invocation) { |
|
19 |
return lcnBalanceProxy.proxy(invokers,super.select(invokers, url, invocation)); |
|
20 |
} |
|
21 |
} |