当前位置: 首页>>代码示例>>Java>>正文


Java LoadBalancerClient类代码示例

本文整理汇总了Java中org.springframework.cloud.client.loadbalancer.LoadBalancerClient的典型用法代码示例。如果您正苦于以下问题:Java LoadBalancerClient类的具体用法?Java LoadBalancerClient怎么用?Java LoadBalancerClient使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


LoadBalancerClient类属于org.springframework.cloud.client.loadbalancer包,在下文中一共展示了LoadBalancerClient类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setup

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Before
public void setup() {
    client = spy(LoadBalancerClient.class);
    doReturn(null).when(client).choose(TOKEN_SERVICE_ID);
    doAnswer(new Answer<URI>() {

        @Override
        public URI answer(InvocationOnMock invocation) throws Throwable {
            return invocation.getArgumentAt(1, URI.class);
        }

    }).when(client).reconstructURI(any(), any());

    recorder = LogbackRecorder.forClass(LoadBalancedResourceDetails.class).reset().capture("ALL");
}
 
开发者ID:jhipster,项目名称:jhipster,代码行数:16,代码来源:LoadBalancedResourceDetailsTest.java

示例2: ServiceUtils

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Autowired
public ServiceUtils(
    @Value("${server.port}") String port,
    LoadBalancerClient loadBalancer) {

    this.port = port;
    this.loadBalancer = loadBalancer;
}
 
开发者ID:callistaenterprise,项目名称:blog-microservices,代码行数:9,代码来源:ServiceUtils.java

示例3: setLoadBalancer

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Autowired(required = false)
public void setLoadBalancer(LoadBalancerClient loadBalancer) {
	this.loadBalancer = loadBalancer;
}
 
开发者ID:ewolff,项目名称:microservice-consul,代码行数:5,代码来源:CustomerClient.java

示例4: ProfilesClient

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Autowired
public ProfilesClient(LoadBalancerClient loadBalancer) {
    this.loadBalancer = loadBalancer;
}
 
开发者ID:Accordance,项目名称:microservice-dojo,代码行数:5,代码来源:AccountsServiceApplication.java

示例5: setLoadBalancerClient

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Autowired(required = false)
public void setLoadBalancerClient(LoadBalancerClient loadBalancerClient) {
    this.loadBalancerClient = loadBalancerClient;
}
 
开发者ID:xetys,项目名称:jhipster-ribbon-hystrix,代码行数:5,代码来源:AbstractMicroserviceClient.java

示例6: DiscoveryClientConsole

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Autowired
public DiscoveryClientConsole(LoadBalancerClient loadBalancerClient, DiscoveryClient discoveryClient) {
    this.loadBalancerClient = loadBalancerClient;
    this.discoveryClient = discoveryClient;
}
 
开发者ID:javaguru,项目名称:tcloud-microservices,代码行数:6,代码来源:TcloudClientApplication.java

示例7: loadBalancerClientFilter

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Bean
@ConditionalOnBean(LoadBalancerClient.class)
public LoadBalancerClientFilter loadBalancerClientFilter(LoadBalancerClient client) {
	return new LoadBalancerClientFilter(client);
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-gateway,代码行数:6,代码来源:GatewayLoadBalancerClientAutoConfiguration.java

示例8: LoadBalancerClientFilter

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
public LoadBalancerClientFilter(LoadBalancerClient loadBalancer) {
	this.loadBalancer = loadBalancer;
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-gateway,代码行数:4,代码来源:LoadBalancerClientFilter.java

示例9: LoadBalancedResourceDetails

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
public LoadBalancedResourceDetails(LoadBalancerClient loadBalancerClient) {
    this.loadBalancerClient = loadBalancerClient;
}
 
开发者ID:jhipster,项目名称:jhipster,代码行数:4,代码来源:LoadBalancedResourceDetails.java

示例10: TraversonFactory

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
public TraversonFactory(LoadBalancerClient loadBalancerClient) {
	this.loadBalancerClient = loadBalancerClient;
}
 
开发者ID:spencergibb,项目名称:myfeed,代码行数:4,代码来源:TraversonFactory.java

示例11: RibbonAsyncClientHttpRequestFactory

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
public RibbonAsyncClientHttpRequestFactory(LoadBalancerClient loadBalancer) {
	this.loadBalancer = loadBalancer;
}
 
开发者ID:spencergibb,项目名称:myfeed,代码行数:4,代码来源:RibbonAsyncClientHttpRequestFactory.java

示例12: asyncRequestFactory

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Bean
public RibbonAsyncClientHttpRequestFactory asyncRequestFactory(LoadBalancerClient loadBalancerClient) {
	RibbonAsyncClientHttpRequestFactory requestFactory = new RibbonAsyncClientHttpRequestFactory(loadBalancerClient);
	requestFactory.setTaskExecutor(new SimpleAsyncTaskExecutor());
	return requestFactory;
}
 
开发者ID:spencergibb,项目名称:myfeed,代码行数:7,代码来源:MyfeedAutoConfig.java

示例13: asyncRestTemplate

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Bean
public AsyncRestTemplate asyncRestTemplate(LoadBalancerInterceptor interceptor, LoadBalancerClient loadBalancer) {
	return asyncRest(interceptor, loadBalancer);
}
 
开发者ID:spencergibb,项目名称:myfeed,代码行数:5,代码来源:MyfeedAutoConfig.java

示例14: traversonFactory

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
@Bean
public TraversonFactory traversonFactory(LoadBalancerClient loadBalancerClient) {
	return new TraversonFactory(loadBalancerClient);
}
 
开发者ID:spencergibb,项目名称:myfeed,代码行数:5,代码来源:MyfeedAutoConfig.java

示例15: LoadBalancerClientZipkinLoadBalancer

import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; //导入依赖的package包/类
LoadBalancerClientZipkinLoadBalancer(LoadBalancerClient loadBalancerClient,
		ZipkinProperties zipkinProperties) {
	this.loadBalancerClient = loadBalancerClient;
	this.zipkinProperties = zipkinProperties;
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-sleuth,代码行数:6,代码来源:LoadBalancerClientZipkinLoadBalancer.java


注:本文中的org.springframework.cloud.client.loadbalancer.LoadBalancerClient类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。