Package io.smallrye.stork.api.config
Interface ServiceConfig
- All Known Implementing Classes:
SimpleServiceConfig
public interface ServiceConfig
Service configuration, wraps (optional) LoadBalancer configuration, (required) ServiceDiscovery configuration and (optional)
ServiceRegistrar configuration
for a single service
-
Method Summary
Modifier and TypeMethodDescriptionLoadBalancer configuration or null if the service is meant only to only be mapped to a list of servicesdefault booleansecure()Deprecated.Use the service discovery 'secure' attribute insteadServiceDiscovery configuration for the serviceServiceRegistrar configuration for the service
-
Method Details
-
serviceName
String serviceName()- Returns:
- (required) name of the service
-
loadBalancer
ConfigWithType loadBalancer()LoadBalancer configuration or null if the service is meant only to only be mapped to a list of services- Returns:
- (optional) load balancer configuration
-
serviceDiscovery
ConfigWithType serviceDiscovery()ServiceDiscovery configuration for the service- Returns:
- (required) service discovery configuration
-
serviceRegistrar
ConfigWithType serviceRegistrar()ServiceRegistrar configuration for the service- Returns:
- (required) service registrar configuration
-
secure
Deprecated.Use the service discovery 'secure' attribute insteadWhether the communication should use a secure connection (e.g. HTTPS)- Returns:
- true if SSL, TLS, etc. should be used for the communication
-