diff --git a/docs/modules/ROOT/examples/storage/SampleHDConfiguration.java b/docs/modules/ROOT/examples/storage/SampleHDConfiguration.java index 57379ff01..5b1f2c63d 100644 --- a/docs/modules/ROOT/examples/storage/SampleHDConfiguration.java +++ b/docs/modules/ROOT/examples/storage/SampleHDConfiguration.java @@ -1,16 +1,16 @@ import com.hazelcast.config.NativeMemoryConfig; -import com.hazelcast.memory.MemorySize; +import com.hazelcast.memory.Capacity; import com.hazelcast.memory.MemoryUnit; public class SampleHDConfiguration { public static void main(String[] args) throws Exception{ //tag::hdconf[] - MemorySize memorySize = new MemorySize(512, MemoryUnit.MEGABYTES); + Capacity capacity = new Capacity(512, MemoryUnit.MEGABYTES); NativeMemoryConfig nativeMemoryConfig = new NativeMemoryConfig() .setAllocatorType(NativeMemoryConfig.MemoryAllocatorType.POOLED) - .setSize(memorySize) + .setCapacity(capacity) .setEnabled(true) .setMinBlockSize(16) .setPageSize(1 << 20); diff --git a/docs/modules/storage/pages/high-density-memory.adoc b/docs/modules/storage/pages/high-density-memory.adoc index 9024d84c1..8f7270271 100644 --- a/docs/modules/storage/pages/high-density-memory.adoc +++ b/docs/modules/storage/pages/high-density-memory.adoc @@ -240,7 +240,7 @@ hazelcast: Config config = new Config(); NativeMemoryConfig memoryConfig = new NativeMemoryConfig() .setEnabled(true) - .setSize(new MemorySize(100, MemoryUnit.GIGABYTES)) + .setCapacity(new Capacity(100, MemoryUnit.GIGABYTES)) .setAllocatorType(POOLED); PersistentMemoryConfig pmemConfig = memoryConfig.getPersistentMemoryConfig() .setEnabled(true)