}
}
private static void changeProperties(JChannel ch) {
ch.setOpt(Channel.AUTO_RECONNECT, true);
ProtocolStack stack=ch.getProtocolStack();
GMS gms=(GMS)stack.findProtocol("GMS");
if(gms != null) {
gms.setViewBundling(true);
gms.setMaxBundlingTime(300);
gms.setPrintLocalAddr(false);
}
MERGE2 merge=(MERGE2)stack.findProtocol("MERGE2");
if(merge != null) {
merge.setMinInterval(2000);
merge.setMaxInterval(5000);
}
VIEW_SYNC sync=(VIEW_SYNC)stack.findProtocol(VIEW_SYNC.class);
if(sync != null)
sync.setAverageSendInterval(5000);
NAKACK nakack=(NAKACK)stack.findProtocol(NAKACK.class);
if(nakack != null)
nakack.setLogDiscardMsgs(false);
}