PingDirective
public enum PingDirective
Directs a shell implementation about how to handle an incoming .ping
.
-
Indicates that incoming gossip was processed and the membership may have changed because of it, inspect the
GossipProcessedDirective
to learn more about what change was applied.Declaration
Swift
case gossipProcessed(GossipProcessedDirective)
-
Send an
ack
message.Declaration
Swift
case sendAck( to: SWIMPingOriginPeer, pingedTarget: SWIMPeer, incarnation: SWIM.Incarnation, payload: SWIM.GossipPayload, acknowledging: SWIM.SequenceNumber )
Parameters
to
the peer to which an
ack
should be sentpingedTarget
the
myself
peer, should be passed astarget
when sending the ack messageincarnation
the incarnation number of this peer; used to determine which status is “the latest” when comparing acknowledgement with suspicions
payload
additional gossip payload to include in the ack message
acknowledging
sequence number of the ack message