Class ConsulServiceDiscoveryProviderConfiguration
- java.lang.Object
-
- io.smallrye.stork.servicediscovery.consul.ConsulServiceDiscoveryProviderConfiguration
-
public class ConsulServiceDiscoveryProviderConfiguration extends Object
Configuration for theConsulServiceDiscoveryProviderServiceDiscovery.
-
-
Constructor Summary
Constructors Constructor Description ConsulServiceDiscoveryProviderConfiguration(Map<String,String> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApplication()The application name; if not defined Stork service name will be used.StringgetConsulHost()The Consul host.StringgetConsulPort()The Consul port.StringgetRefreshPeriod()Service discovery cache refresh period.StringgetUseHealthChecks()Whether to use health check.
-
-
-
Method Detail
-
getConsulHost
public String getConsulHost()
The Consul host. By default: localhost
-
getConsulPort
public String getConsulPort()
The Consul port. By default: 8500
-
getUseHealthChecks
public String getUseHealthChecks()
Whether to use health check. By default: true
-
getApplication
public String getApplication()
The application name; if not defined Stork service name will be used.
-
getRefreshPeriod
public String getRefreshPeriod()
Service discovery cache refresh period. By default: 5M
-
-