Package io.smallrye.stork.api
Class ServiceDefinition
java.lang.Object
io.smallrye.stork.api.ServiceDefinition
Define a service that will be managed by Stork.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceDefinitionof(ConfigWithType sd) Creates a newServiceDefinitionusing the givenConfigWithType.static ServiceDefinitionof(ConfigWithType sd, ConfigWithType lb) Creates a newServiceDefinitionusing the givenConfigWithType.static ServiceDefinitionof(ConfigWithType sd, ConfigWithType lb, ConfigWithType sr)
-
Method Details
-
of
Creates a newServiceDefinitionusing the givenConfigWithType.- Parameters:
sd- the service discovery config, must not benull- Returns:
- the created service definition
-
of
- Parameters:
sd- the service discovery config, must not benulllb- the load balancer config, ifnull, round-robin is used.sr- the service registrar config, must not benull- Returns:
- the created service definition
-
of
Creates a newServiceDefinitionusing the givenConfigWithType.- Parameters:
sd- the service discovery config, must not benulllb- the load balancer config, ifnull, round-robin is used.- Returns:
- the created service definition
-
getLoadBalancer
- Returns:
- the configured load balancer config.
-
getServiceDiscovery
- Returns:
- the configured service discovery config.
-
getServiceRegistrar
- Returns:
- the configured service discovery config.
-