@Override
  public CustomExpiry setCustomEntryTimeToLive(CustomExpiry custom) {
    CustomExpiry expiry = super.setCustomEntryTimeToLive(custom);
    // Set to Bucket regions as well
    if (dataStore != null) {
      dataStore.lockBucketCreationAndVisit(
          (bucketId, r) -> r.getAttributesMutator().setCustomEntryTimeToLive(custom));
    }
    return expiry;
  }
Changes the custom timeToLive for values in this region

@param custom the new CustomExpiry
@return the old CustomExpiry
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java