Class MemoryInfoProviderFromRuntime
- java.lang.Object
-
- net.snowflake.ingest.streaming.internal.MemoryInfoProviderFromRuntime
-
- All Implemented Interfaces:
MemoryInfoProvider
public class MemoryInfoProviderFromRuntime extends Object implements MemoryInfoProvider
Reads memory information from JVM runtime
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getFreeMemory()
static MemoryInfoProviderFromRuntime
getInstance()
long
getMaxMemory()
-
-
-
Method Detail
-
getInstance
public static MemoryInfoProviderFromRuntime getInstance()
-
getMaxMemory
public long getMaxMemory()
- Specified by:
getMaxMemory
in interfaceMemoryInfoProvider
- Returns:
- Max memory the JVM can allocate
-
getFreeMemory
public long getFreeMemory()
- Specified by:
getFreeMemory
in interfaceMemoryInfoProvider
- Returns:
- Free JVM memory
-
-