code: public int getMaxConnections()
      {
          stateCheck(State.CREATED, State.RUNNING, State.HEALTH_CHECKING);
          return permits.getMaxPermits();
      }
docs: Returns the maximum number of connections allowed.
  
  @return the maxConnections
  @see Builder#withMaxConnections(int)