public AsyncHttpClientFactoryEmbed(){
  AsyncHttpClient fastClient=null;
  AsyncHttpClient slowClient=null;
  try {
    AsyncHttpClientConfigBean configFastClient=new AsyncHttpClientConfigBean();
    logger.info("FastClient: ningFastClientConnectionTimeoutMillis: {}",ParallecGlobalConfig.ningFastClientConnectionTimeoutMillis);
    configFastClient.setConnectionTimeOutInMs(ParallecGlobalConfig.ningFastClientConnectionTimeoutMillis);
    logger.info("FastClient: ningFastClientRequestTimeoutMillis: {}",ParallecGlobalConfig.ningFastClientRequestTimeoutMillis);
    configFastClient.setRequestTimeoutInMs(ParallecGlobalConfig.ningFastClientRequestTimeoutMillis);
    fastClient=new AsyncHttpClient(configFastClient);
    AsyncHttpClientConfigBean configSlowClient=new AsyncHttpClientConfigBean();
    configSlowClient.setConnectionTimeOutInMs(ParallecGlobalConfig.ningSlowClientConnectionTimeoutMillis);
    configSlowClient.setRequestTimeoutInMs(ParallecGlobalConfig.ningSlowClientRequestTimeoutMillis);
    slowClient=new AsyncHttpClient(configSlowClient);
    disableCertificateVerification();
  }
 catch (  Exception e) {
    logger.error("ERROR IN HttpClientFactoryEmbed " + e.getLocalizedMessage());
  }
  this.fastClient=fastClient;
  this.slowClient=slowClient;
}

public AsyncHttpClientFactoryEmbed ( ) { AsyncHttpClient fastClient = null ; AsyncHttpClient slowClient = null ; try { AsyncHttpClientConfigBean configFastClient = new AsyncHttpClientConfigBean ( ) ; logger . info ( "FastClient: ningFastClientConnectionTimeoutMillis: {}" , ParallecGlobalConfig . ningFastClientConnectionTimeoutMillis ) ; configFastClient . setConnectionTimeOutInMs ( ParallecGlobalConfig . ningFastClientConnectionTimeoutMillis ) ; logger . info ( "FastClient: ningFastClientRequestTimeoutMillis: {}" , ParallecGlobalConfig . ningFastClientRequestTimeoutMillis ) ; configFastClient . setRequestTimeoutInMs ( ParallecGlobalConfig . ningFastClientRequestTimeoutMillis ) ; fastClient = new AsyncHttpClient ( configFastClient ) ; AsyncHttpClientConfigBean configSlowClient = new AsyncHttpClientConfigBean ( ) ; configSlowClient . setConnectionTimeOutInMs ( ParallecGlobalConfig . ningSlowClientConnectionTimeoutMillis ) ; configSlowClient . setRequestTimeoutInMs ( ParallecGlobalConfig . ningSlowClientRequestTimeoutMillis ) ; slowClient = new AsyncHttpClient ( configSlowClient ) ; disableCertificateVerification ( ) ; } catch ( Exception e ) { logger . error ( "ERROR IN HttpClientFactoryEmbed " + e . getLocalizedMessage ( ) ) ; } this . fastClient = fastClient ; this . slowClient = slowClient ; }
instantiates a new http client factory embed .
