public HostConnection(final HostInfo hostInfo,int connectTimeout){
  this.hostInfo=hostInfo;
  this.protocol=hostInfo.getProtocol();
  this.executorService=Executors.newSingleThreadExecutor();
  this.connectTimeout=connectTimeout;
}

public HostConnection ( final HostInfo hostInfo , int connectTimeout ) { this . hostInfo = hostInfo ; this . protocol = hostInfo . getProtocol ( ) ; this . executorService = Executors . newSingleThreadExecutor ( ) ; this . connectTimeout = connectTimeout ; }
creates a new host connection
