Interface HeartbeatAware
-
- 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
SplitBrainProtectionFunction
s which implement this interface will be notified of member heartbeats.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onHeartbeat(Member member, long timestamp)
Notifies of a received heartbeat.
-
-
-
Method Detail
-
onHeartbeat
void onHeartbeat(Member member, long timestamp)
Notifies of a received heartbeat. This method is always invoked beforeSplitBrainProtectionFunction.apply(Collection)
so theSplitBrainProtectionFunction
can update its internal state before deciding on whether the minimum cluster size property (for the purpose of split brain detection) is satisfied.- Parameters:
member
- member from which heartbeat was receivedtimestamp
- timestmap on which heartbeat was received
-
-