@Override
    public boolean equals(Object obj) {
      if (this == obj) {
        return true;
      }
      if (obj == null) {
        return false;
      }
      if (getClass() != obj.getClass()) {
        return false;
      }
      Config other = (Config) obj;
      if (diskDir == null) {
        if (other.diskDir != null) {
          return false;
        }
      } else if (!diskDir.equals(other.diskDir)) {
        return false;
      }
      if (persistBackup != other.persistBackup) {
        return false;
      }
      if (poolName == null) {
        if (other.poolName != null) {
          return false;
        }
      } else if (!poolName.equals(other.poolName)) {
        return false;
      }
      return registerInterest == other.registerInterest;
    }
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