public void reinitIfClosed(){
  if (isClosed.get()) {
    logger.info("External Resource was released. Now Re-initializing resources ...");
    ActorConfig.createAndGetActorSystem();
    httpClientStore.reinit();
    tcpSshPingResourceStore.reinit();
    try {
      Thread.sleep(1000l);
    }
 catch (    InterruptedException e) {
      logger.error("error reinit httpClientStore",e);
    }
    isClosed.set(true);
    logger.info("Parallel Client Resources has been reinitialized.");
  }
 else {
    logger.debug("NO OP. Resource was not released.");
  }
}

public void reinitIfClosed ( ) { if ( isClosed . get ( ) ) { logger . info ( "External Resource was released. Now Re-initializing resources ..." ) ; ActorConfig . createAndGetActorSystem ( ) ; httpClientStore . reinit ( ) ; tcpSshPingResourceStore . reinit ( ) ; try { Thread . sleep ( 1000l ) ; } catch ( InterruptedException e ) { logger . error ( "error reinit httpClientStore" , e ) ; } isClosed . set ( true ) ; logger . info ( "Parallel Client Resources has been reinitialized." ) ; } else { logger . debug ( "NO OP. Resource was not released." ) ; } }
auto re - initialize external resourced if resources have been already released .
