public class ConfigUtil extends Object
| 构造器和说明 |
|---|
ConfigUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
Env |
getApolloEnv()
Get the current environment.
|
String |
getAppId()
Get the app id for the current application.
|
String |
getCluster()
Get the cluster name for the current application.
|
long |
getConfigCacheExpireTime() |
TimeUnit |
getConfigCacheExpireTimeUnit() |
int |
getConnectTimeout() |
String |
getDataCenter()
Get the data center info for the current application.
|
String |
getDefaultLocalCacheDir() |
int |
getLoadConfigQPS() |
String |
getLocalIp() |
long |
getLongPollingInitialDelayInMills() |
int |
getLongPollQPS() |
long |
getMaxConfigCacheSize() |
String |
getMetaServerDomainName() |
long |
getOnErrorRetryInterval() |
TimeUnit |
getOnErrorRetryIntervalTimeUnit() |
int |
getReadTimeout() |
int |
getRefreshInterval() |
TimeUnit |
getRefreshIntervalTimeUnit() |
boolean |
isAutoUpdateInjectedSpringPropertiesEnabled() |
boolean |
isInLocalMode() |
boolean |
isOSWindows() |
public String getAppId()
public String getDataCenter()
public String getCluster()
public Env getApolloEnv()
public String getLocalIp()
public String getMetaServerDomainName()
public int getConnectTimeout()
public int getReadTimeout()
public int getRefreshInterval()
public TimeUnit getRefreshIntervalTimeUnit()
public int getLoadConfigQPS()
public int getLongPollQPS()
public long getOnErrorRetryInterval()
public TimeUnit getOnErrorRetryIntervalTimeUnit()
public String getDefaultLocalCacheDir()
public boolean isInLocalMode()
public boolean isOSWindows()
public long getMaxConfigCacheSize()
public long getConfigCacheExpireTime()
public TimeUnit getConfigCacheExpireTimeUnit()
public long getLongPollingInitialDelayInMills()
public boolean isAutoUpdateInjectedSpringPropertiesEnabled()
Copyright © 2019 Ctrip, Inc.. All rights reserved.