Class HeartbeatMonitor
- java.lang.Object
-
- org.springframework.cloud.client.discovery.event.HeartbeatMonitor
-
public class HeartbeatMonitor extends Object
Helper class for listeners to theHeartbeatEvent
, providing a convenient way to determine if there has been a change in state.- Author:
- Dave Syer
-
-
Constructor Summary
Constructors Constructor Description HeartbeatMonitor()
-
-
-
Method Detail
-
update
public boolean update(Object value)
- Parameters:
value
- The latest heartbeat.- Returns:
- True if the state changed.
-
-