@ConfigurationProperties(prefix="spring.cloud.consul.discovery.heartbeat") @Validated public class HeartbeatProperties extends Object
Constructor and Description |
---|
HeartbeatProperties() |
Modifier and Type | Method and Description |
---|---|
protected org.joda.time.Period |
computeHearbeatInterval() |
@DecimalMin(value="0.1") @DecimalMax(value="0.9") double |
getIntervalRatio() |
String |
getTtl() |
@NotNull String |
getTtlUnit() |
@Min(value=1L) int |
getTtlValue() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setIntervalRatio(@DecimalMin(value="0.1") @DecimalMax(value="0.9") double intervalRatio) |
void |
setTtlUnit(@NotNull String ttlUnit) |
void |
setTtlValue(@Min(value=1L) int ttlValue) |
String |
toString() |
protected org.joda.time.Period computeHearbeatInterval()
public String getTtl()
public boolean isEnabled()
@Min(value=1L) public @Min(value=1L) int getTtlValue()
@NotNull public @NotNull String getTtlUnit()
@DecimalMin(value="0.1") @DecimalMax(value="0.9") public @DecimalMin(value="0.1") @DecimalMax(value="0.9") double getIntervalRatio()
public void setEnabled(boolean enabled)
public void setTtlValue(@Min(value=1L) @Min(value=1L) int ttlValue)
public void setTtlUnit(@NotNull @NotNull String ttlUnit)
public void setIntervalRatio(@DecimalMin(value="0.1") @DecimalMax(value="0.9") @DecimalMin(value="0.1") @DecimalMax(value="0.9") double intervalRatio)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.