Annotation Interface 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 a LoadBalancerClientFactory to access the client that is created.
Author:
Dave Syer
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    A custom @Configuration for the load balancer client.
    The name of the load balancer client, uniquely identifying a set of client resources, including a load balancer.
    Synonym for name (the name of the client).
  • Element Details

    • value

      @AliasFor("name") String value
      Synonym for name (the name of the client).
      Returns:
      the name of the load balancer client
      See Also:
      Default:
      ""
    • 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:
      Default:
      {}