transportBuilder.distributedSyncTimeout(timeout.longValue());
}
// Topology is retrieved from the channel
Channel channel = transport.getChannel();
if(channel.getAddress() instanceof TopologyUUID) {
TopologyUUID topologyAddress = (TopologyUUID) channel.getAddress();
String site = topologyAddress.getSiteId();
if (site != null) {
transportBuilder.siteId(site);
}
String rack = topologyAddress.getRackId();
if (rack != null) {
transportBuilder.rackId(rack);
}
String machine = topologyAddress.getMachineId();
if (machine != null) {
transportBuilder.machineId(machine);
}
}
transportBuilder.clusterName(this.name);