Class EurekaRegistrationConfig
java.lang.Object
org.kiwiproject.registry.eureka.config.EurekaConfig
org.kiwiproject.registry.eureka.config.EurekaRegistrationConfig
Configuration model needed for registering a service with Eureka
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault value for lease expiration (seconds).static final intDefault value for heartbeats (seconds).static final intMaximum allowable time before lease expiration can occur (seconds).static final intMaximum allowable time between heartbeats (seconds). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe amount of time before a service will expire from Eureka (in seconds)intThe amount of time between each heartbeat to the Eureka server (in seconds)booleanWhether 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 Details
-
DEFAULT_LEASE_EXPIRATION_DURATION_SECONDS
public static final int DEFAULT_LEASE_EXPIRATION_DURATION_SECONDSDefault value for lease expiration (seconds).- See Also:
-
MAX_LEASE_EXPIRATION_DURATION_SECONDS
public static final int MAX_LEASE_EXPIRATION_DURATION_SECONDSMaximum allowable time before lease expiration can occur (seconds).- See Also:
-
DEFAULT_LEASE_RENEWAL_INTERVAL_SECONDS
public static final int DEFAULT_LEASE_RENEWAL_INTERVAL_SECONDSDefault value for heartbeats (seconds).- See Also:
-
MAX_LEASE_RENEWAL_INTERVAL_SECONDS
public static final int MAX_LEASE_RENEWAL_INTERVAL_SECONDSMaximum allowable time between heartbeats (seconds).- See Also:
-
-
Constructor Details
-
EurekaRegistrationConfig
public EurekaRegistrationConfig()
-
-
Method Details
-
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.
-