Class HeartbeatMonitor
java.lang.Object
org.springframework.cloud.client.discovery.event.HeartbeatMonitor
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 Summary
-
Method Summary
-
Constructor Details
-
HeartbeatMonitor
public HeartbeatMonitor()
-
-
Method Details
-
update
- Parameters:
value
- The latest heartbeat.- Returns:
- True if the state changed.
-