code: public void setConnectTimeout(int millis) {
  		ClientHttpRequestFactory f = getRequestFactory();
  		if (f instanceof SimpleClientHttpRequestFactory) {
  			((SimpleClientHttpRequestFactory) f).setConnectTimeout(millis);
  		}
  		else {
  			((HttpComponentsClientHttpRequestFactory) f).setConnectTimeout(millis);
  		}
  	}
docs: The connection timeout for making a connection to Twitter.