public void setOffHeap(boolean offHeap) {
    regionAttributes.offHeap = offHeap;
    regionAttributes.setHasOffHeap(true);

    if (regionAttributes.partitionAttributes != null) {
      ((PartitionAttributesImpl) regionAttributes.partitionAttributes).setOffHeap(offHeap);
    }
  }
Enables this region's usage of off-heap memory if true.

@since Geode 1.0
@param offHeap boolean flag to enable off-heap memory
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java