public final class MemoryStatsSupport extends Object
Modifier and Type | Method and Description |
---|---|
static long |
freePhysicalMemory()
Returns the amount of physical memory that is available on the system in bytes or -1 if not available.
|
static long |
freeSwapSpace()
Returns the amount of free swap space in bytes or -1 if not available.
|
static long |
totalPhysicalMemory()
Returns the total available physical memory on the system in bytes or -1 if not available.
|
static long |
totalSwapSpace()
Returns the total amount of swap space in bytes or -1 if not available.
|
public static long totalPhysicalMemory()
public static long freePhysicalMemory()
public static long totalSwapSpace()
public static long freeSwapSpace()
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.