public class NativeMemoryConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NativeMemoryConfig.MemoryAllocatorType
Type of memory allocator:
STANDARD: allocate/free memory using default OS memory manager
POOLED: manage memory blocks in pool
|
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_METADATA_SPACE_PERCENTAGE
Default metadata space percentage
|
static int |
DEFAULT_MIN_BLOCK_SIZE
Default minimum block size
|
static int |
DEFAULT_PAGE_SIZE
Default page size
|
static int |
DEFAULT_POWER
Default power for page size
|
static int |
INITIAL_MEMORY_SIZE
Initial memory size in megabytes
|
static int |
MIN_INITIAL_MEMORY_SIZE
Minimum initial memory size in megabytes
|
Constructor and Description |
---|
NativeMemoryConfig() |
Modifier and Type | Method and Description |
---|---|
NativeMemoryConfig.MemoryAllocatorType |
getAllocatorType() |
float |
getMetadataSpacePercentage() |
int |
getMinBlockSize() |
int |
getPageSize() |
MemorySize |
getSize() |
boolean |
isEnabled() |
NativeMemoryConfig |
setAllocatorType(NativeMemoryConfig.MemoryAllocatorType allocatorType) |
NativeMemoryConfig |
setEnabled(boolean enabled) |
NativeMemoryConfig |
setMetadataSpacePercentage(float metadataSpacePercentage) |
NativeMemoryConfig |
setMinBlockSize(int minBlockSize) |
NativeMemoryConfig |
setPageSize(int pageSize) |
NativeMemoryConfig |
setSize(MemorySize size) |
String |
toString() |
public static final int DEFAULT_MIN_BLOCK_SIZE
public static final int DEFAULT_POWER
public static final int DEFAULT_PAGE_SIZE
public static final float DEFAULT_METADATA_SPACE_PERCENTAGE
public static final int MIN_INITIAL_MEMORY_SIZE
public static final int INITIAL_MEMORY_SIZE
public MemorySize getSize()
public NativeMemoryConfig setSize(MemorySize size)
public boolean isEnabled()
public NativeMemoryConfig setEnabled(boolean enabled)
public NativeMemoryConfig.MemoryAllocatorType getAllocatorType()
public NativeMemoryConfig setAllocatorType(NativeMemoryConfig.MemoryAllocatorType allocatorType)
public int getMinBlockSize()
public NativeMemoryConfig setMinBlockSize(int minBlockSize)
public int getPageSize()
public NativeMemoryConfig setPageSize(int pageSize)
public float getMetadataSpacePercentage()
public NativeMemoryConfig setMetadataSpacePercentage(float metadataSpacePercentage)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.