Class HeartbeatEvent

All Implemented Interfaces:
Serializable

public class HeartbeatEvent extends AbstractServiceInstanceEvent
A heartbeat event is an event fired periodically and configured by HeartbeatConfiguration.
Since:
1.0
Author:
Graeme Rocher
See Also:
  • Constructor Details

    • HeartbeatEvent

      public HeartbeatEvent(ServiceInstance source, HealthStatus status)
      Parameters:
      source - The service instance
      status - The status of health indicator
  • Method Details

    • getStatus

      public HealthStatus getStatus()
      This method will return the HealthStatus if the server is configured to calculate the status.
      Returns:
      The current health status