Package io.smallrye.stork.api.config
Interface ServiceConfig
-
- All Known Implementing Classes:
SimpleServiceConfig
public interface ServiceConfigService configuration, wraps both (optional) LoadBalancer configuration and (required) ServiceDiscovery configuration for a single service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description LoadBalancerConfigloadBalancer()LoadBalancer 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 insteadServiceDiscoveryConfigserviceDiscovery()ServiceDiscovery configuration for the serviceStringserviceName()
-
-
-
Method Detail
-
serviceName
String serviceName()
- Returns:
- (required) name of the service
-
loadBalancer
LoadBalancerConfig 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
ServiceDiscoveryConfig serviceDiscovery()
ServiceDiscovery configuration for the service- Returns:
- (required) service discovery configuration
-
secure
@Deprecated default boolean 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
-
-