public ClientCacheFactory setPoolMaxConnections(int maxConnections) {
    getPoolFactory().setMaxConnections(maxConnections);
    return this;
  }
Set the max number of client to server connections that the pool will create. If all of the
connections are in use, an operation requiring a client to server connection will block until a
connection is available.

@param maxConnections the maximum number of connections in the pool. this pool will create. -1
       indicates that there is no maximum number of connections
@return a reference to <code>this</code>
@throws IllegalArgumentException if <code>maxConnections</code> is less than
        <code>minConnections</code>.
@see #setPoolFreeConnectionTimeout(int)
@see #setPoolServerConnectionTimeout(int)
geode-core/src/main/java/org/apache/geode/cache/client/ClientCacheFactory.java