public class HeartbeatEvent extends AbstractServiceInstanceEvent
HeartbeatConfiguration
.source
Constructor and Description |
---|
HeartbeatEvent(ServiceInstance source,
HealthStatus status) |
Modifier and Type | Method and Description |
---|---|
HealthStatus |
getStatus()
This method will return the
HealthStatus if the server is configured to calculate the status. |
getSource
toString
public HeartbeatEvent(ServiceInstance source, HealthStatus status)
source
- The service instancestatus
- The status of health indicatorpublic HealthStatus getStatus()
HealthStatus
if the server is configured to calculate the status.