Documentation of 'edu.jas.kern.TimeStatus' Java class
TimeStatus
edu.jas.kern

Class TimeStatus



  • public class TimeStatus
    extends java.lang.Object
    Run-time status, defines global status and handling for run time limits.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void checkTime(java.lang.String msg)
      Check for exceeded time, test if time has exceeded and throw an exception if so.
      static boolean isActive()
      isActive.
      static void restart()
      Restart timer, set run-time to current time.
      static void setActive()
      setAllow, set run-time interruption to allowed status.
      static void setCallBack(java.util.concurrent.Callable<java.lang.Boolean> cb)
      set call back, set the Callabe object.
      static void setLimit(long t)
      setLimit, set run-time limit in milliseconds.
      static void setNotActive()
      setNotActive, set run-time interruption to not active status.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isActive

        public static boolean isActive()
        isActive.
        Returns:
        true, if run-time interruption is active, else false.
      • setActive

        public static void setActive()
        setAllow, set run-time interruption to allowed status.
      • setNotActive

        public static void setNotActive()
        setNotActive, set run-time interruption to not active status.
      • setLimit

        public static void setLimit(long t)
        setLimit, set run-time limit in milliseconds.
      • restart

        public static void restart()
        Restart timer, set run-time to current time.
      • setCallBack

        public static void setCallBack(java.util.concurrent.Callable<java.lang.Boolean> cb)
        set call back, set the Callabe object.
      • checkTime

        public static void checkTime(java.lang.String msg)
        Check for exceeded time, test if time has exceeded and throw an exception if so.
        Parameters:
        msg - the message to be send with the exception.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.