Package io.smallrye.stork.spi.config
Class SimpleServiceConfig
java.lang.Object
io.smallrye.stork.spi.config.SimpleServiceConfig
- All Implemented Interfaces:
ServiceConfig
Implementation of
ServiceConfig storing the service name, service discovery config and load balancer config.
Instances should be created using SimpleServiceConfig.Builder.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classASimpleServiceConfigbuilder.static classAn implementation ofConfigWithTypeusing an unmodifiableMapas backend to store the configuration.static classAn implementation ofConfigWithTypeusing an unmodifiableMapas backend to store the configuration.static classAn implementation ofConfigWithTypeusing an unmodifiableMapas backend to store the configuration. -
Method Summary
Modifier and TypeMethodDescriptionLoadBalancer configuration or null if the service is meant only to only be mapped to a list of servicesServiceDiscovery configuration for the serviceServiceRegistrar configuration for the serviceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.stork.api.config.ServiceConfig
secure
-
Method Details
-
serviceName
- Specified by:
serviceNamein interfaceServiceConfig- Returns:
- (required) name of the service
-
loadBalancer
Description copied from interface:ServiceConfigLoadBalancer configuration or null if the service is meant only to only be mapped to a list of services- Specified by:
loadBalancerin interfaceServiceConfig- Returns:
- (optional) load balancer configuration
-
serviceDiscovery
Description copied from interface:ServiceConfigServiceDiscovery configuration for the service- Specified by:
serviceDiscoveryin interfaceServiceConfig- Returns:
- (required) service discovery configuration
-
serviceRegistrar
Description copied from interface:ServiceConfigServiceRegistrar configuration for the service- Specified by:
serviceRegistrarin interfaceServiceConfig- Returns:
- (required) service registrar configuration
-