Package io.smallrye.stork.api.config
Interface ServiceConfig
-
- All Known Implementing Classes:
SimpleServiceConfig
public interface ServiceConfigService configuration, wraps (optional) LoadBalancer configuration, (required) ServiceDiscovery configuration and (optional) ServiceRegistrar configuration for a single service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ConfigWithTypeloadBalancer()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 insteadConfigWithTypeserviceDiscovery()ServiceDiscovery configuration for the serviceStringserviceName()ConfigWithTypeserviceRegistrar()ServiceRegistrar configuration for the service
-
-
-
Method Detail
-
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 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
-
-