@Override
    public int hashCode() {
      final int prime = 31;
      int result = 1;
      result = prime * result + ((diskDir == null) ? 0 : diskDir.hashCode());
      result = prime * result + (persistBackup ? 1231 : 1237);
      result = prime * result + ((poolName == null) ? 0 : poolName.hashCode());
      result = prime * result + (registerInterest ? 1231 : 1237);
      return result;
    }
Creates a configuration with the given attributes

@param diskDir the directory to which the region's data is written
@param poolName the name of the connection pool to use
@param persistBackup boolean specifying if a persistent backup should be made of the region
@param registerInterest whether regions created by the factory will register interest in all
       keys in a corresponding server cache region
geode-core/src/main/java/org/apache/geode/cache/DynamicRegionFactory.java