Class EurekaRegistrationConfig
- java.lang.Object
-
- org.kiwiproject.registry.eureka.config.EurekaConfig
-
- org.kiwiproject.registry.eureka.config.EurekaRegistrationConfig
-
public class EurekaRegistrationConfig extends EurekaConfig
Configuration model needed for registering a service with Eureka
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_LEASE_EXPIRATION_DURATION_SECONDSDefault value for lease expiration (seconds).static intDEFAULT_LEASE_RENEWAL_INTERVAL_SECONDSDefault value for heartbeats (seconds).static intMAX_LEASE_EXPIRATION_DURATION_SECONDSMaximum allowable time before lease expiration can occur (seconds).static intMAX_LEASE_RENEWAL_INTERVAL_SECONDSMaximum allowable time between heartbeats (seconds).
-
Constructor Summary
Constructors Constructor Description EurekaRegistrationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExpirationIntervalInSeconds()The amount of time before a service will expire from Eureka (in seconds)intgetHeartbeatIntervalInSeconds()The amount of time between each heartbeat to the Eureka server (in seconds)booleanisTrackHeartbeats()Whether the registry service should track the number of heartbeats sent.voidsetExpirationIntervalInSeconds(int expirationIntervalInSeconds)The amount of time before a service will expire from Eureka (in seconds)voidsetHeartbeatIntervalInSeconds(int heartbeatIntervalInSeconds)The amount of time between each heartbeat to the Eureka server (in seconds)voidsetTrackHeartbeats(boolean trackHeartbeats)Whether the registry service should track the number of heartbeats sent.-
Methods inherited from class org.kiwiproject.registry.eureka.config.EurekaConfig
getDomainOverride, getRegistryUrls, getRetryExceptionLogLevel, getRetryId, getRetryProcessingLogLevel, isIncludeNativeData, retryId, setDomainOverride, setIncludeNativeData, setRegistryUrls, setRegistryUrls, setRetryExceptionLogLevel, setRetryId, setRetryProcessingLogLevel
-
-
-
-
Field Detail
-
DEFAULT_LEASE_EXPIRATION_DURATION_SECONDS
public static final int DEFAULT_LEASE_EXPIRATION_DURATION_SECONDS
Default value for lease expiration (seconds).- See Also:
- Constant Field Values
-
MAX_LEASE_EXPIRATION_DURATION_SECONDS
public static final int MAX_LEASE_EXPIRATION_DURATION_SECONDS
Maximum allowable time before lease expiration can occur (seconds).- See Also:
- Constant Field Values
-
DEFAULT_LEASE_RENEWAL_INTERVAL_SECONDS
public static final int DEFAULT_LEASE_RENEWAL_INTERVAL_SECONDS
Default value for heartbeats (seconds).- See Also:
- Constant Field Values
-
MAX_LEASE_RENEWAL_INTERVAL_SECONDS
public static final int MAX_LEASE_RENEWAL_INTERVAL_SECONDS
Maximum allowable time between heartbeats (seconds).- See Also:
- Constant Field Values
-
-
Method Detail
-
getHeartbeatIntervalInSeconds
public int getHeartbeatIntervalInSeconds()
The amount of time between each heartbeat to the Eureka server (in seconds)
-
getExpirationIntervalInSeconds
public int getExpirationIntervalInSeconds()
The amount of time before a service will expire from Eureka (in seconds)
-
isTrackHeartbeats
public boolean isTrackHeartbeats()
Whether the registry service should track the number of heartbeats sent. Mostly used for testing purposes.
-
setHeartbeatIntervalInSeconds
public void setHeartbeatIntervalInSeconds(int heartbeatIntervalInSeconds)
The amount of time between each heartbeat to the Eureka server (in seconds)
-
setExpirationIntervalInSeconds
public void setExpirationIntervalInSeconds(int expirationIntervalInSeconds)
The amount of time before a service will expire from Eureka (in seconds)
-
setTrackHeartbeats
public void setTrackHeartbeats(boolean trackHeartbeats)
Whether the registry service should track the number of heartbeats sent. Mostly used for testing purposes.
-
-