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.

    public interface HeartbeatAware
    SplitBrainProtectionFunctions which implement this interface will be notified of member heartbeats.
    • Method Detail

      • 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.
        member - member from which heartbeat was received
        timestamp - timestmap on which heartbeat was received