Class HeartbeatMonitor

java.lang.Object
org.springframework.cloud.client.discovery.event.HeartbeatMonitor

public class HeartbeatMonitor extends Object
Helper class for listeners to the HeartbeatEvent, providing a convenient way to determine if there has been a change in state.
Author:
Dave Syer
  • Constructor Details

    • HeartbeatMonitor

      public HeartbeatMonitor()
  • Method Details

    • update

      public boolean update(Object value)
      Parameters:
      value - The latest heartbeat.
      Returns:
      True if the state changed.