@Deprecated
  public void setMirrorType(MirrorType mirrorType) {
    if (mirrorType == null) {
      throw new IllegalArgumentException(
          "mirrorType must not be null");
    }
    DataPolicy dp = mirrorType.getDataPolicy();
    if (dp.withReplication()) {
      // requested a mirror type that has replication
      // if current data policy is not replicated change it
      if (!regionAttributes.getDataPolicy().withReplication()) {
        setDataPolicy(dp);
      }
    } else {
      // requested a mirror type none;
      // if current data policy is replicated change it
      if (regionAttributes.getDataPolicy().withReplication()) {
        setDataPolicy(dp);
      }
    }
  }
Sets the mirror type for the next {@code RegionAttributes} created.

@param mirrorType The type of mirroring to use for the region
@throws IllegalArgumentException if mirrorType is null
@deprecated use {@link #setDataPolicy} instead.
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java