SWIMPingOriginPeer

public protocol SWIMPingOriginPeer : SWIMAddressablePeer

SWIM A peer which originated a ping, should be replied to with an ack.

  • Acknowledge a ping.

    Declaration

    Swift

    func ack(
        acknowledging sequenceNumber: SWIM.SequenceNumber,
        target: SWIMPeer,
        incarnation: SWIM.Incarnation,
        payload: SWIM.GossipPayload
    )

    Parameters

    sequenceNumber

    the sequence number of the incoming ping that this ack should acknowledge

    target

    target peer which received the ping (i.e. “myself” on the recipient of the ping).

    incarnation

    incarnation number of the target (myself), which is used to clarify which status is the most recent on the recipient of this acknowledgement.

    payload

    additional gossip data to be carried with the message. It is already trimmed to be no larger than configured in SWIM.Settings.