private void gossip ( Collection < ImmutableMember > updates ) { // Get a list of available peers. If peers are available, randomize the peer list and select a subset of // peers with which to gossip updates. List < SwimMember > members = Lists . newArrayList ( randomMembers ) ; if ( ! members . isEmpty ( ) ) { Collections . shuffle ( members ) ; for ( int i = 0 ; i < Math . min ( members . size ( ) , config . getGossipFanout ( ) ) ; i ++ ) { gossip ( members . get ( i ) , updates ) ; } } }
Gossips this node s pending updates with a random set of peers .