}
private synchronized void reconnect() {
logger.warn(String.format("Re-connecting (%d)", myId));
try {
tryConnect(new InfiniteReconnect());
}
catch(Exception e) {
logger.error(e.getMessage(), e);
logger.error("connection %d: fail to reconnect", myId);
return;