PingRequestDirective
public enum PingRequestDirective
Directs a shell implementation about how to handle an incoming .pingRequest
.
-
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 a ping to the requested
target
peer using the provided timeout and sequenceNumber.Declaration
Swift
case sendPing( target: SWIMPeer, payload: SWIM.GossipPayload, pingRequestOrigin: SWIMPingRequestOriginPeer, pingRequestSequenceNumber: SWIM.SequenceNumber, timeout: DispatchTimeInterval, pingSequenceNumber: SWIM.SequenceNumber )
Parameters
target
the target peer which should be probed
payload
gossip information to be processed by this peer, resulting in potentially discovering new information about other members of the cluster
pingRequestOrigin
peer on whose behalf we are performing this indirect ping; it will be useful to pipe back replies from the target to the origin member.
pingRequestSequenceNumber
sequence number that must be used when replying to the
pingRequestOrigin
timeout
timeout to be used when performing the ping probe (it MAY be smaller than a normal direct ping probe’s timeout)
pingSequenceNumber
sequence number to use for the
ping
message