Skip navigation links
CASA Knowledge Science Group
Dept of Computer Science
Univeristy of Calgary
casa

Class ExitChecker

    • Field Detail

    • Constructor Detail

      • ExitChecker

        private ExitChecker()
        Hide the constructor (it can only be accessed indirectly by a call to {link ExitChecker#startExitCheck()}).
    • Method Detail

      • startExitCheck

        static void startExitCheck()
        Start up the ExitChecker thread, or, if it's already running, interrupt it to perform a check immediately.
      • run

        public void run()
        Wakes up every 2 seconds to check for an CASA agent threads or a main thread. If it doesn't find any, calls System.exit().
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
        See Also:
        Thread.run()
CASA Knowledge Science Group
Dept of Computer Science
Univeristy of Calgary