public boolean withPersistence() {
    return this == PERSISTENT_PARTITION || this == PERSISTENT_REPLICATE;
  }
Return whether this policy does persistence.

@return true if this policy does persistence.
@see #PERSISTENT_PARTITION
@see #PERSISTENT_REPLICATE
@since GemFire 6.5
geode-core/src/main/java/org/apache/geode/cache/DataPolicy.java