public void setEntryIdleTimeout(ExpirationAttributes idleTimeout) {
    if (idleTimeout == null) {
      throw new IllegalArgumentException(
          "idleTimeout must not be null");
    }
    regionAttributes.entryIdleTimeout = idleTimeout.getTimeout();
    regionAttributes.entryIdleTimeoutExpirationAction = idleTimeout.getAction();
    regionAttributes.setHasEntryIdleTimeout(true);
  }
Sets the idleTimeout expiration attributes for region entries for the next
{@code RegionAttributes} created. Default is 0 which indicates no expiration of this type.

@param idleTimeout the idleTimeout ExpirationAttributes for entries in this region
@throws IllegalArgumentException if idleTimeout is null
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java