use of io.scalecube.cluster.membership.MembershipProtocol in project scalecube by scalecube.
the class GossipProtocolTest method initGossipProtocol.
private GossipProtocolImpl initGossipProtocol(Transport transport, List<Address> members) {
MembershipProtocol dummyMembership = new DummyMembershipProtocol(transport.address(), members);
GossipConfig gossipConfig = ClusterConfig.builder().gossipFanout(gossipFanout).gossipInterval(gossipInterval).gossipRepeatMult(gossipRepeatMultiplier).build();
GossipProtocolImpl gossipProtocol = new GossipProtocolImpl(transport, dummyMembership, gossipConfig);
gossipProtocol.start();
return gossipProtocol;
}
Aggregations