public void setCacheLoader(CacheLoader<K, V> cacheLoader) {
    regionAttributes.cacheLoader = cacheLoader;
    regionAttributes.setHasCacheLoader(true);
  }
Sets the cache loader for the next {@code RegionAttributes} created.

@param cacheLoader the cache loader or null if no loader
@throws IllegalStateException if this region has a {@link #setPoolName pool name set}
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java