@Override
public final void connect() throws IOException {
Timer timer = ThreadLocalMetricsRecorder.getInstance().getConnectionTimer();
timer.start();
doConnect();
timer.stop();
}
protected void doConnect() throws IOException {
SocketAddress address = getSocketAddress(host);
socket.connect(address, timeout);