Class SimpleServiceConfig.SimpleServiceDiscoveryConfig

java.lang.Object
io.smallrye.stork.spi.config.SimpleServiceConfig.SimpleServiceDiscoveryConfig
All Implemented Interfaces:
ConfigWithType
Enclosing class:
SimpleServiceConfig

public static class SimpleServiceConfig.SimpleServiceDiscoveryConfig extends Object implements ConfigWithType
An implementation of ConfigWithType using an unmodifiable Map as backend to store the configuration.
  • Constructor Details

    • SimpleServiceDiscoveryConfig

      public SimpleServiceDiscoveryConfig(String type, Map<String,String> parameters)
      Creates a new SimpleConfigWithType.
      Parameters:
      type - the type
      parameters - the configuration map
  • Method Details

    • type

      public String type()
      Description copied from interface: ConfigWithType
      Load balancer type, e.g. "round-robin". A LoadBalancerProvider for the type has to be available
      Specified by:
      type in interface ConfigWithType
      Returns:
      load balancer type
    • parameters

      public Map<String,String> parameters()
      Description copied from interface: ConfigWithType
      Load Balancer parameters.
      Specified by:
      parameters in interface ConfigWithType
      Returns:
      map of parameters of the load balancer