@Override
    public MirrorType getMirrorType() {
      if (dataPolicy.isNormal() || dataPolicy.isPreloaded() || dataPolicy.isEmpty()
          || dataPolicy.withPartitioning()) {
        return MirrorType.NONE;
      } else if (dataPolicy.withReplication()) {
        return MirrorType.KEYS_VALUES;
      } else {
        throw new IllegalStateException(
            String.format("No mirror type corresponds to data policy %s.",
                dataPolicy));
      }
    }
Constructs an instance of {@code RegionAttributes} with default settings.

@see AttributesFactory
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java