code: private JedisPoolConfig onPoolConfig(final byte WHEN_EXHAUSTED_FAIL, String maxActivePerNode,
              String maxIdlePerNode, String minIdlePerNode, String maxTotal)
      {
          if (!StringUtils.isBlank(maxActivePerNode) && StringUtils.isNumeric(maxActivePerNode))
          {
              logger.info("configuring connection pool");
  
              JedisPoolConfig poolConfig = new JedisPoolConfig();
  
              if (maxTotal != null && StringUtils.isNumeric(maxTotal))
              {
                  poolConfig.setMaxTotal(Integer.valueOf(maxTotal));
              }
              if (maxIdlePerNode != null && StringUtils.isNumeric(maxIdlePerNode))
              {
                  poolConfig.setMaxIdle(Integer.valueOf(maxIdlePerNode));
              }
              if (minIdlePerNode != null && StringUtils.isNumeric(minIdlePerNode))
              {
                  poolConfig.setMinIdle(Integer.parseInt(minIdlePerNode));
              }
              if (maxActivePerNode != null && StringUtils.isNumeric(maxActivePerNode))
              {
                  //poolConfig.setWhenExhaustedAction(WHEN_EXHAUSTED_FAIL);
                  poolConfig.setBlockWhenExhausted(true);
              }
              return poolConfig;
          }
  
          return null;
      }
docs: /*
  On pool config event.