SWIMPingRequestOriginPeer

public protocol SWIMPingRequestOriginPeer : SWIMPingOriginPeer

A SWIM peer which originated a pingRequest and thus can receive either an ack or nack from the intermediary.

  • “Negative acknowledge” a ping.

    This message may ONLY be send in an indirect-ping scenario from the “middle” peer. Meaning, only a peer which received a pingRequest and wants to send the pingRequestOrigin a nack in order for it to be aware that its message did reach this member, even if it never gets an ack through this member, e.g. since the pings target node is actually not reachable anymore.

    Declaration

    Swift

    func nack(
        acknowledging: SWIM.SequenceNumber,
        target: SWIMPeer
    )

    Parameters

    sequenceNumber

    the sequence number of the incoming pingRequest that this nack is a response to

    target

    the target peer which was attempted to be pinged but we didn’t get an ack from it yet and are sending a nack back eagerly