public ClientCacheFactory setPoolRetryAttempts(int retryAttempts) {
    getPoolFactory().setRetryAttempts(retryAttempts);
    return this;
  }
Set the number of times to retry a request after timeout/exception.

@param retryAttempts The number of times to retry a request after timeout/exception. -1
       indicates that a request should be tried against every available server before failing
@return a reference to <code>this</code>
@throws IllegalArgumentException if <code>idleTimout</code> is less than <code>-1</code>.
geode-core/src/main/java/org/apache/geode/cache/client/ClientCacheFactory.java