io.smallrye.stork.spi.config.ConfigProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stork-api Show documentation
Show all versions of stork-api Show documentation
Main Stork API classes. You are likely to need `smallrye-stork-core` and not this module.
The newest version!
package io.smallrye.stork.spi.config;
import java.util.List;
import io.smallrye.stork.api.config.ServiceConfig;
/**
* Configuration provider for Service Discovery and Load Balancer
*/
public interface ConfigProvider {
/**
* Get a list of service configurations, each wrapping a configuration for both
* ServiceDiscovery and LoadBalancer
*
* @return a list of configurations
*/
List getConfigs();
/**
* Priority of the configuration provider.
* A single ConfigProvider is used in an application, the one with the highest priority
*
* @return the priority
*/
int priority();
}