public RegionFactory<K, V> setPoolName(String poolName) {
    attrsFactory.setPoolName(poolName);
    return this;
  }
Sets the pool name attribute. This causes regions that use these attributes to be a client
region which communicates with the servers that the connection pool communicates with.
<p>
If this attribute is set to {@code null} or {@code ""} then the connection pool is disabled
causing regions that use these attributes to be communicate with peers instead of servers.
<p>
The named connection pool must exist on the cache at the time these attributes are used to
create a region. See {@link PoolManager#createFactory} for how to create a connection pool.

@param poolName the name of the connection pool to use; if {@code null} or {@code ""} then the
       connection pool attribute is disabled for regions using these attributes.
@return a reference to this RegionFactory object
@throws IllegalStateException if a cache loader or cache writer has already been set.
@since GemFire 5.7
geode-core/src/main/java/org/apache/geode/cache/RegionFactory.java