Package io.smallrye.stork.spi.config
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 ofConfigWithTypeusing an unmodifiableMapas backend to store the configuration.
-
-
Constructor Summary
Constructors Constructor Description SimpleServiceDiscoveryConfig(String type, Map<String,String> parameters)Creates a new SimpleConfigWithType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>parameters()Load Balancer parameters.Stringtype()Load balancer type, e.g.
-
-
-
Method Detail
-
type
public String type()
Description copied from interface:ConfigWithTypeLoad balancer type, e.g. "round-robin". A LoadBalancerProvider for the type has to be available- Specified by:
typein interfaceConfigWithType- Returns:
- load balancer type
-
parameters
public Map<String,String> parameters()
Description copied from interface:ConfigWithTypeLoad Balancer parameters.- Specified by:
parametersin interfaceConfigWithType- Returns:
- map of parameters of the load balancer
-
-