public class ConsultantConfigurationProvider
extends com.netflix.governator.configuration.AbstractObjectConfigurationProvider
| Constructor and Description |
|---|
ConsultantConfigurationProvider(Consultant consultant)
Creates a new ConsultantConfigurationProvider.
|
ConsultantConfigurationProvider(Consultant consultant,
DateFormat dateFormat)
Creates a new ConsultantConfigurationProvider.
|
| Modifier and Type | Method and Description |
|---|---|
com.netflix.governator.configuration.Property<Boolean> |
getBooleanProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
Boolean defaultValue) |
DateFormat |
getDateFormat() |
com.netflix.governator.configuration.Property<Date> |
getDateProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
Date defaultValue) |
com.netflix.governator.configuration.Property<Double> |
getDoubleProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
Double defaultValue) |
com.netflix.governator.configuration.Property<Integer> |
getIntegerProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
Integer defaultValue) |
com.netflix.governator.configuration.Property<Long> |
getLongProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
Long defaultValue) |
com.netflix.governator.configuration.Property<String> |
getStringProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
String defaultValue) |
boolean |
has(com.netflix.governator.configuration.ConfigurationKey key) |
getObjectPropertypublic ConsultantConfigurationProvider(Consultant consultant)
consultant - The Consultant to use to retrieve the configuration from Consul, and subscribe to updates.public ConsultantConfigurationProvider(Consultant consultant, DateFormat dateFormat)
consultant - The Consultant to use to retrieve the configuration from Consul, and subscribe to updates.dateFormat - A custom DateFormat to use to parse Date's stored in Consul's config.public DateFormat getDateFormat()
public com.netflix.governator.configuration.Property<Boolean> getBooleanProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, Boolean defaultValue)
getBooleanProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic com.netflix.governator.configuration.Property<Integer> getIntegerProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, Integer defaultValue)
getIntegerProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic com.netflix.governator.configuration.Property<Long> getLongProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, Long defaultValue)
getLongProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic com.netflix.governator.configuration.Property<Double> getDoubleProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, Double defaultValue)
getDoubleProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic com.netflix.governator.configuration.Property<String> getStringProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, String defaultValue)
getStringProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic com.netflix.governator.configuration.Property<Date> getDateProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, Date defaultValue)
getDateProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic boolean has(com.netflix.governator.configuration.ConfigurationKey key)
has in interface com.netflix.governator.configuration.ConfigurationProviderhas in class com.netflix.governator.configuration.DefaultConfigurationProviderCopyright © 2016. All rights reserved.