public class DefaultEurekaTransportConfig extends java.lang.Object implements EurekaTransportConfig
Constructor and Description |
---|
DefaultEurekaTransportConfig(java.lang.String parentNamespace,
com.netflix.config.DynamicPropertyFactory configInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
applicationsResolverUseIp()
By default, the applications resolver extracts the public hostname from internal InstanceInfos for resolutions.
|
int |
getApplicationsResolverDataStalenessThresholdSeconds() |
int |
getAsyncExecutorThreadPoolSize() |
int |
getAsyncResolverRefreshIntervalMs() |
int |
getAsyncResolverWarmUpTimeoutMs() |
java.lang.String |
getBootstrapResolverStrategy()
Can be used to specify different bootstrap resolve strategies.
|
java.lang.String |
getReadClusterVip()
The remote vipAddress of the eureka cluster (either the primaries or a readonly replica) to fetch registry
data from.
|
double |
getRetryableClientQuarantineRefreshPercentage() |
int |
getSessionedClientReconnectIntervalSeconds() |
java.lang.String |
getWriteClusterVip()
The remote vipAddress of the primary eureka cluster to register with.
|
boolean |
useBootstrapResolverForQuery()
By default, the transport uses the same (bootstrap) resolver for queries.
|
public DefaultEurekaTransportConfig(java.lang.String parentNamespace, com.netflix.config.DynamicPropertyFactory configInstance)
public int getSessionedClientReconnectIntervalSeconds()
getSessionedClientReconnectIntervalSeconds
in interface EurekaTransportConfig
public double getRetryableClientQuarantineRefreshPercentage()
getRetryableClientQuarantineRefreshPercentage
in interface EurekaTransportConfig
public int getApplicationsResolverDataStalenessThresholdSeconds()
getApplicationsResolverDataStalenessThresholdSeconds
in interface EurekaTransportConfig
public boolean applicationsResolverUseIp()
EurekaTransportConfig
applicationsResolverUseIp
in interface EurekaTransportConfig
public int getAsyncResolverRefreshIntervalMs()
getAsyncResolverRefreshIntervalMs
in interface EurekaTransportConfig
public int getAsyncResolverWarmUpTimeoutMs()
getAsyncResolverWarmUpTimeoutMs
in interface EurekaTransportConfig
public int getAsyncExecutorThreadPoolSize()
getAsyncExecutorThreadPoolSize
in interface EurekaTransportConfig
public java.lang.String getWriteClusterVip()
EurekaTransportConfig
getWriteClusterVip
in interface EurekaTransportConfig
public java.lang.String getReadClusterVip()
EurekaTransportConfig
getReadClusterVip
in interface EurekaTransportConfig
public java.lang.String getBootstrapResolverStrategy()
EurekaTransportConfig
EurekaTransportConfig.getApplicationsResolverDataStalenessThresholdSeconds()
, otherwise
fall back to a backing defaultgetBootstrapResolverStrategy
in interface EurekaTransportConfig
public boolean useBootstrapResolverForQuery()
EurekaTransportConfig
EurekaTransportConfig.getReadClusterVip()
. This indirect resolver may or may not return the same
targets as the bootstrap servers depending on how servers are setup.useBootstrapResolverForQuery
in interface EurekaTransportConfig