Akka.Cluster.ClusterMetricsCollector.ReceiveGossip C# (CSharp) Метод

ReceiveGossip() приватный Метод

Receives changes from peer nodes, merges remote with local gossip nodes, then publishes changes to the event stream for load balancing router consumption, and gossip back.
private ReceiveGossip ( MetricsGossipEnvelope envelope ) : void
envelope MetricsGossipEnvelope
Результат void
        private void ReceiveGossip(MetricsGossipEnvelope envelope)
        {
            // remote node might not have same view of member nodes, this side should only care
            // about nodes that are known here, otherwise removed nodes can come back
            var otherGossip = envelope.Gossip.Filter(Nodes);
            LatestGossip = LatestGossip.Merge(otherGossip);
            // changes will be published in the period collect task
            if (!envelope.Reply)
                ReplyGossipTo(envelope.From);
        }