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
Modifier and TypeFieldDescriptionstatic final int
Default value for lease expiration (seconds).static final int
Default value for heartbeats (seconds).static final int
Maximum allowable time before lease expiration can occur (seconds).static final int
Maximum allowable time between heartbeats (seconds). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The amount of time before a service will expire from Eureka (in seconds)int
The amount of time between each heartbeat to the Eureka server (in seconds)boolean
Whether the registry service should track the number of heartbeats sent.void
setExpirationIntervalInSeconds
(int expirationIntervalInSeconds) The amount of time before a service will expire from Eureka (in seconds)void
setHeartbeatIntervalInSeconds
(int heartbeatIntervalInSeconds) The amount of time between each heartbeat to the Eureka server (in seconds)void
setTrackHeartbeats
(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.
-