Skip to content
Snippets Groups Projects
Commit 04f11fdd authored by xujingfeng's avatar xujingfeng
Browse files

change loadbalance

parent 0ed20816
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,6 @@ public class UserLoadBalance implements LoadBalance {
@Override
public <T> Invoker<T> select(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException {
System.out.println("use user loadbalance");
return invokers.get(ThreadLocalRandom.current().nextInt(invokers.size()));
}
}
package com.aliware.tianchi;
import org.apache.dubbo.common.extension.SPI;
import org.apache.dubbo.rpc.listener.CallbackListener;
import org.apache.dubbo.rpc.service.CallbackService;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment