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 Details

    • DEFAULT_LEASE_EXPIRATION_DURATION_SECONDS

      public static final int DEFAULT_LEASE_EXPIRATION_DURATION_SECONDS
      Default value for lease expiration (seconds).
      See Also:
    • 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:
    • DEFAULT_LEASE_RENEWAL_INTERVAL_SECONDS

      public static final int DEFAULT_LEASE_RENEWAL_INTERVAL_SECONDS
      Default value for heartbeats (seconds).
      See Also:
    • MAX_LEASE_RENEWAL_INTERVAL_SECONDS

      public static final int MAX_LEASE_RENEWAL_INTERVAL_SECONDS
      Maximum 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.