Class EurekaRegistrationConfig


  • public class EurekaRegistrationConfig
    extends EurekaConfig
    Configuration model needed for registering a service with Eureka
    • 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
    • Constructor Detail

      • EurekaRegistrationConfig

        public EurekaRegistrationConfig()
    • 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.