Class RuntimeUtils


  • public class RuntimeUtils
    extends java.lang.Object
    Class used to access static Runtime properties. Useful for testing as it can be mocked with mockStatic.
    • Constructor Detail

      • RuntimeUtils

        public RuntimeUtils()
    • Method Detail

      • freeMemory

        public static long freeMemory()
      • totalMemory

        public static long totalMemory()
      • maxMemory

        public static long maxMemory()
      • getMemoryFractionUsage

        public static double getMemoryFractionUsage()
      • getGarbageCollectorMXBeans

        public static java.util.List<java.lang.management.GarbageCollectorMXBean> getGarbageCollectorMXBeans()