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
SplitBrainProtectionFunctions which implement this interface will be notified of member heartbeats.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onHeartbeat(Member member, long timestamp)
    Notifies of a received heartbeat.
  • Method Details

    • onHeartbeat

      void onHeartbeat(Member member, long timestamp)
      Notifies of a received heartbeat. This method is always invoked before SplitBrainProtectionFunction.apply(Collection) so the SplitBrainProtectionFunction 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 received
      timestamp - timestamp on which heartbeat was received