Class SimpleServiceConfig

java.lang.Object
io.smallrye.stork.spi.config.SimpleServiceConfig
All Implemented Interfaces:
ServiceConfig

public class SimpleServiceConfig extends Object implements ServiceConfig
Implementation of ServiceConfig storing the service name, service discovery config and load balancer config. Instances should be created using SimpleServiceConfig.Builder.
  • Method Details

    • serviceName

      public String serviceName()
      Specified by:
      serviceName in interface ServiceConfig
      Returns:
      (required) name of the service
    • loadBalancer

      public ConfigWithType loadBalancer()
      Description copied from interface: ServiceConfig
      LoadBalancer configuration or null if the service is meant only to only be mapped to a list of services
      Specified by:
      loadBalancer in interface ServiceConfig
      Returns:
      (optional) load balancer configuration
    • serviceDiscovery

      public ConfigWithType serviceDiscovery()
      Description copied from interface: ServiceConfig
      ServiceDiscovery configuration for the service
      Specified by:
      serviceDiscovery in interface ServiceConfig
      Returns:
      (required) service discovery configuration
    • serviceRegistrar

      public ConfigWithType serviceRegistrar()
      Description copied from interface: ServiceConfig
      ServiceRegistrar configuration for the service
      Specified by:
      serviceRegistrar in interface ServiceConfig
      Returns:
      (required) service registrar configuration