@Override
  public PoolFactory setRetryAttempts(int retryAttempts) {
    if (retryAttempts < -1) {
      throw new IllegalArgumentException("retryAttempts must be greater than or equal to -1");
    }
    attributes.retryAttempts = retryAttempts;
    return this;
  }
The cache that created this factory
geode-core/src/main/java/org/apache/geode/internal/cache/PoolFactoryImpl.java