ny
23 小时以前 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package jnpf.handler;
 
import cn.dev33.satoken.context.model.SaRequest;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.loadbalancer.Response;
 
import java.util.List;
 
/**
 * 负载均衡处理器
 *
 * @author JNPF开发平台组
 * @version V3.5.0
 * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
 * @date 2024-01-10
 */
public interface ILoadBalancerHandler {
 
    boolean isSupport(String serviceId, String uri);
 
    Response<ServiceInstance> choose(String serviceId, List<ServiceInstance> serviceInstances, SaRequest request);
 
 
}