4.2. Data Grid の設定 API
プログラムで Data Grid を設定します。
グローバル設定
GlobalConfiguration
クラスを使用して、Cache Manager 下のすべてのキャッシュに設定を適用します。
GlobalConfiguration globalConfig = new GlobalConfigurationBuilder() .cacheContainer().statistics(true) .metrics().gauges(true).histograms(true) .jmx().enable() .build();
GlobalConfiguration globalConfig = new GlobalConfigurationBuilder()
.cacheContainer().statistics(true)
.metrics().gauges(true).histograms(true)
.jmx().enable()
.build();
参考資料:
キャッシュ設定
ConfigurationBuilder
クラスを使用してキャッシュを設定します。
参考資料: