- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HeartbeatAware
SplitBrainProtectionFunctions which implement this interface will be notified of member heartbeats.
Modifier and Type Method Description
onHeartbeat(Member member, long timestamp)Notifies of a received heartbeat.
onHeartbeatvoid onHeartbeat(Member member, long timestamp)Notifies of a received heartbeat. This method is always invoked before
SplitBrainProtectionFunctioncan update its internal state before deciding on whether the minimum cluster size property (for the purpose of split brain detection) is satisfied.
member- member from which heartbeat was received
timestamp- timestmap on which heartbeat was received