public abstract class AbstractRibbonClientConfig extends Object implements com.netflix.client.config.IClientConfig
IClientConfig interface.| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX
The prefix to use for all Ribbon settings.
|
| Constructor and Description |
|---|
AbstractRibbonClientConfig(Environment environment)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsProperty(com.netflix.client.config.IClientConfigKey key) |
<T> T |
get(com.netflix.client.config.IClientConfigKey<T> key) |
protected <T> T |
get(com.netflix.client.config.IClientConfigKey<T> key,
Class<T> type,
T defaultValue)
Get a property based on the parameters.
|
<T> T |
get(com.netflix.client.config.IClientConfigKey<T> key,
T defaultValue) |
String |
getClientName() |
String |
getNameSpace() |
Map<String,Object> |
getProperties() |
Object |
getProperty(com.netflix.client.config.IClientConfigKey key)
Deprecated.
|
Object |
getProperty(com.netflix.client.config.IClientConfigKey key,
Object defaultVal)
Deprecated.
|
boolean |
getPropertyAsBoolean(com.netflix.client.config.IClientConfigKey key,
boolean defaultValue) |
int |
getPropertyAsInteger(com.netflix.client.config.IClientConfigKey key,
int defaultValue) |
String |
getPropertyAsString(com.netflix.client.config.IClientConfigKey key,
String defaultValue) |
void |
loadDefaultValues() |
void |
loadProperties(String clientName) |
protected String |
qualifyKey(com.netflix.client.config.IClientConfigKey key)
Return the namespace + key.
|
String |
resolveDeploymentContextbasedVipAddresses() |
<T> com.netflix.client.config.IClientConfig |
set(com.netflix.client.config.IClientConfigKey<T> key,
T value) |
void |
setProperty(com.netflix.client.config.IClientConfigKey key,
Object value)
Deprecated.
|
void |
setVipAddressResolver(Optional<com.netflix.client.VipAddressResolver> resolver)
Sets an optional
VipAddressResolver. |
public static final String PREFIX
public AbstractRibbonClientConfig(Environment environment)
environment - environment@Inject public void setVipAddressResolver(Optional<com.netflix.client.VipAddressResolver> resolver)
VipAddressResolver.resolver - The VipAddressResolverpublic String getClientName()
getClientName in interface com.netflix.client.config.IClientConfigIClientConfig.getClientName()public String getNameSpace()
getNameSpace in interface com.netflix.client.config.IClientConfigIClientConfig.getNameSpace()public void loadProperties(String clientName)
loadProperties in interface com.netflix.client.config.IClientConfigIClientConfig.loadProperties(String)public void loadDefaultValues()
loadDefaultValues in interface com.netflix.client.config.IClientConfigIClientConfig.loadDefaultValues()public Map<String,Object> getProperties()
getProperties in interface com.netflix.client.config.IClientConfigIClientConfig.getProperties()@Deprecated public void setProperty(com.netflix.client.config.IClientConfigKey key, Object value)
setProperty in interface com.netflix.client.config.IClientConfigIClientConfig.setProperty(IClientConfigKey, Object)@Deprecated public Object getProperty(com.netflix.client.config.IClientConfigKey key)
getProperty in interface com.netflix.client.config.IClientConfigIClientConfig.getProperty(IClientConfigKey)@Deprecated public Object getProperty(com.netflix.client.config.IClientConfigKey key, Object defaultVal)
getProperty in interface com.netflix.client.config.IClientConfigIClientConfig.getProperty(IClientConfigKey, Object)public boolean containsProperty(com.netflix.client.config.IClientConfigKey key)
containsProperty in interface com.netflix.client.config.IClientConfigIClientConfig.containsProperty(IClientConfigKey)public int getPropertyAsInteger(com.netflix.client.config.IClientConfigKey key,
int defaultValue)
getPropertyAsInteger in interface com.netflix.client.config.IClientConfigIClientConfig.getPropertyAsInteger(IClientConfigKey, int)public String getPropertyAsString(com.netflix.client.config.IClientConfigKey key, String defaultValue)
getPropertyAsString in interface com.netflix.client.config.IClientConfigIClientConfig.getPropertyAsString(IClientConfigKey, String)public boolean getPropertyAsBoolean(com.netflix.client.config.IClientConfigKey key,
boolean defaultValue)
getPropertyAsBoolean in interface com.netflix.client.config.IClientConfigIClientConfig.getPropertyAsBoolean(IClientConfigKey, boolean)public <T> T get(com.netflix.client.config.IClientConfigKey<T> key)
get in interface com.netflix.client.config.IClientConfigIClientConfig.get(IClientConfigKey)public <T> T get(com.netflix.client.config.IClientConfigKey<T> key,
T defaultValue)
get in interface com.netflix.client.config.IClientConfigIClientConfig.get(IClientConfigKey, Object)public <T> com.netflix.client.config.IClientConfig set(com.netflix.client.config.IClientConfigKey<T> key,
T value)
set in interface com.netflix.client.config.IClientConfigIClientConfig.set(IClientConfigKey, Object)public String resolveDeploymentContextbasedVipAddresses()
resolveDeploymentContextbasedVipAddresses in interface com.netflix.client.config.IClientConfigIClientConfig.resolveDeploymentContextbasedVipAddresses()protected <T> T get(com.netflix.client.config.IClientConfigKey<T> key,
Class<T> type,
T defaultValue)
T - type of config keykey - keytype - typedefaultValue - defaultValueprotected String qualifyKey(com.netflix.client.config.IClientConfigKey key)
key - key