4.3.4. ハッシュ設定
これは、XML を使用して、ハッシュを宣言的に設定する方法です。
<distributed-cache name="distributedCache" owners="2" segments="100" capacity-factor="2" />
Java では、プログラムを用いてこの方法で設定できます。
Configuration c = new ConfigurationBuilder()
.clustering()
.cacheMode(CacheMode.DIST_SYNC)
.hash()
.numOwners(2)
.numSegments(100)
.capacityFactor(2)
.build();