code: public RiakNode setMaxConnections(int maxConnections)
      {
          stateCheck(State.CREATED, State.RUNNING, State.HEALTH_CHECKING);
          if (maxConnections >= getMinConnections())
          {
              permits.setMaxPermits(maxConnections);
          }
          else
          {
              throw new IllegalArgumentException("Max connections less than min connections");
          }
          // TODO: reap delta?
          return this;
      }
docs: Sets the maximum number of connections allowed.
  
  @param maxConnections the maxConnections to set.
  @return a reference to this RiakNode.
  @see Builder#withMaxConnections(int)