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 aBoolean) |
DateFormat |
getDateFormat() |
com.netflix.governator.configuration.Property<Date> |
getDateProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
Date date) |
com.netflix.governator.configuration.Property<Double> |
getDoubleProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
Double aDouble) |
com.netflix.governator.configuration.Property<Integer> |
getIntegerProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
Integer integer) |
com.netflix.governator.configuration.Property<Long> |
getLongProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
Long aLong) |
com.netflix.governator.configuration.Property<String> |
getStringProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey,
String s) |
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 aBoolean)
getBooleanProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic com.netflix.governator.configuration.Property<Integer> getIntegerProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, Integer integer)
getIntegerProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic com.netflix.governator.configuration.Property<Long> getLongProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, Long aLong)
getLongProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic com.netflix.governator.configuration.Property<Double> getDoubleProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, Double aDouble)
getDoubleProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderpublic com.netflix.governator.configuration.Property<String> getStringProperty(com.netflix.governator.configuration.ConfigurationKey configurationKey, String s)
getStringProperty in class com.netflix.governator.configuration.DefaultConfigurationProviderCopyright © 2015. All rights reserved.