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);
if (gzip) channel.addInterceptor(new GzipInterceptor());
if ( frag ) {
FragmentationInterceptor fi = new FragmentationInterceptor();
fi.setMaxSize(fragsize);
channel.addInterceptor(fi);
}
if (order) {
OrderInterceptor oi = new OrderInterceptor();
oi.setMaxQueue(ordersize);
channel.addInterceptor(oi);
}
return channel;
}