Class MemoryWatcher

  • All Implemented Interfaces:
    Runnable

    public class MemoryWatcher
    extends Thread
    It will check the memory usage and if it is consistently above the threshold, it will execute the memory watcher actions.
    • Constructor Detail

      • MemoryWatcher

        public MemoryWatcher​(String pid,
                             double threshold,
                             int retryCount)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread