Skip to content

Commit

Permalink
Enable statistics for caching-defined Regions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jxblum committed Jul 14, 2021
1 parent 8e53d53 commit 9d50c44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ public class CachingDefinedRegionsConfiguration extends AbstractAnnotationConfig

private ClientRegionShortcut clientRegionShortcut = ClientRegionShortcut.PROXY;

private CompositeLifecycle compositeLifecycle = new CompositeLifecycle();
private final CompositeLifecycle compositeLifecycle = new CompositeLifecycle();

@Autowired(required = false)
private List<RegionConfigurer> regionConfigurers = Collections.emptyList();
private final List<RegionConfigurer> regionConfigurers = Collections.emptyList();

private RegionShortcut serverRegionShortcut = RegionShortcut.PARTITION;

Expand Down Expand Up @@ -314,6 +314,7 @@ private ConfigurableBeanFactory registerRegionBeans(Set<String> cacheNames, Conf
regionFactoryBean.setRegionConfigurers(resolveRegionConfigurers());
regionFactoryBean.setRegionName(cacheName);
regionFactoryBean.setServerRegionShortcut(resolveServerRegionShortcut());
regionFactoryBean.setStatisticsEnabled(true);

String poolName = resolvePoolName();

Expand Down Expand Up @@ -391,6 +392,7 @@ protected final Class<? extends Annotation> getAnnotationType() {

protected abstract Class<? extends Annotation>[] getMethodCacheAnnotationTypes();

@SuppressWarnings("rawtypes")
protected Class[] append(Class[] annotationTypes, Class... additionalAnnotationTypes) {

List<Class> annotationTypeList = new ArrayList<>(Arrays.asList(annotationTypes));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.springframework.data.gemfire.config.annotation;

import java.lang.annotation.Documented;
Expand Down

0 comments on commit 9d50c44

Please # to comment.