transport.setLoopback(b);
}
private void setBundling(JChannel ch, boolean enabled, int max_bytes, long timeout) {
ProtocolStack stack=ch.getProtocolStack();
Vector<Protocol> prots=stack.getProtocols();
TP transport=(TP)prots.lastElement();
transport.setEnableBundling(enabled);
transport.setMaxBundleSize(max_bytes);
transport.setMaxBundleTimeout(timeout);
transport.setEnable_unicast_bundling(false);
if(enabled) {
GMS gms=(GMS)stack.findProtocol("GMS");
gms.setViewAckCollectionTimeout(LATENCY * 2);
gms.setJoinTimeout(LATENCY * 2);
}
}