Package io.smallrye.stork.spi.config
Class SimpleServiceConfig.Builder
java.lang.Object
io.smallrye.stork.spi.config.SimpleServiceConfig.Builder
- Enclosing class:
- SimpleServiceConfig
A
SimpleServiceConfig builder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates theSimpleServiceConfigsetLoadBalancer(ConfigWithType loadBalancer) Sets the load balancer config.setSecure(boolean secure) Sets totrueto indicate that the service uses a secure transport (TLS).setServiceDiscovery(ConfigWithType serviceDiscoveryConfig) Sets the service discovery config.setServiceName(String serviceName) Sets the service name.setServiceRegistrar(ConfigWithType serviceRegistrarConfig) Sets the service registrar config.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setLoadBalancer
Sets the load balancer config.- Parameters:
loadBalancer- the load balancer config- Returns:
- the current builder
-
setServiceDiscovery
Sets the service discovery config.- Parameters:
serviceDiscoveryConfig- the service discovery config- Returns:
- the current builder
-
setServiceRegistrar
Sets the service registrar config.- Parameters:
serviceRegistrarConfig- the service registrar config- Returns:
- the current builder
-
setServiceName
Sets the service name.- Parameters:
serviceName- the service name, must not benullor blank.- Returns:
- the current builder
-
setSecure
Sets totrueto indicate that the service uses a secure transport (TLS).- Parameters:
secure-trueto indicate that the service uses TLS.- Returns:
- the current builder
-
build
Creates theSimpleServiceConfig- Returns:
- the built config
-