ps.setReplicationMode(sender);
ps.setAckTimeout(acktimeout);
ps.setAutoConnect(autoconnect);
ps.setWaitForAck(ack);
McastService service = new McastService();
service.setMcastAddr(mcastaddr);
if (mbind != null) service.setMcastBindAddress(mbind);
service.setMcastFrequency(mcastfreq);
service.setMcastDropTime(mcastdrop);
service.setMcastPort(mcastport);
ManagedChannel channel = new GroupChannel();
channel.setChannelReceiver(rl);
channel.setChannelSender(ps);
channel.setMembershipService(service);