Annotation Type LoadBalancerClient
-
@Configuration(proxyBeanMethods=false) @Import(LoadBalancerClientConfigurationRegistrar.class) @Target(TYPE) @Retention(RUNTIME) @Documented public @interface LoadBalancerClient
Declarative configuration for a load balancer client. Add this annotation to any@Configuration
and then inject aLoadBalancerClientFactory
to access the client that is created.- Author:
- Dave Syer
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>[]
configuration
A custom@Configuration
for the load balancer client.String
name
The name of the load balancer client, uniquely identifying a set of client resources, including a load balancer.String
value
Synonym for name (the name of the client).
-
-
-
-
name
@AliasFor("value") String name
The name of the load balancer client, uniquely identifying a set of client resources, including a load balancer.- Returns:
- the name of the load balancer client
- Default:
- ""
-
-
-
configuration
Class<?>[] configuration
A custom@Configuration
for the load balancer client. Can contain override@Bean
definition for the pieces that make up the client.- Returns:
- configuration classes for the load balancer client.
- See Also:
for the defaults
- Default:
- {}
-
-