public final class FreeMemoryChecker extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.hazelcast.spi.properties.HazelcastProperty |
FREE_MEMORY_CHECKER_ENABLED
Hazelcast XML and system property for setting if free memory checking is enabled.
|
static String |
HIDENSITY_CHECK_FREEMEMORY
Name of the property for enabling or disabling the free memory checking.
|
| Constructor and Description |
|---|
FreeMemoryChecker(com.hazelcast.spi.properties.HazelcastProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFreeMemory(long size)
If enabled and is able to fetch memory statistics via
OperatingSystemMXBean,
checks if there is enough free physical memory for the requested number of bytes. |
public static final String HIDENSITY_CHECK_FREEMEMORY
public static final com.hazelcast.spi.properties.HazelcastProperty FREE_MEMORY_CHECKER_ENABLED
public FreeMemoryChecker(com.hazelcast.spi.properties.HazelcastProperties properties)
public void checkFreeMemory(long size)
OperatingSystemMXBean,
checks if there is enough free physical memory for the requested number of bytes. If the free memory checker is disabled,
acts as if the check succeeded.size - the number of bytes that need to be allocatedCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.