@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof PoolFactoryImpl)) {
      return false;
    }
    PoolFactoryImpl that = (PoolFactoryImpl) o;
    return Objects.equals(attributes, that.attributes)
        && Objects.equals(new HashSet<>(locatorAddresses), new HashSet<>(that.locatorAddresses));
  }
Create a new Pool for connecting a client to a set of GemFire Cache Servers. using this
factory's settings for attributes.

@param name the name of the connection pool, used when connecting regions to it
@throws IllegalStateException if the connection pool name already exists
@throws IllegalStateException if this factory does not have any locators or servers
@return the newly created connection pool.
@since GemFire 5.7
geode-core/src/main/java/org/apache/geode/internal/cache/PoolFactoryImpl.java