Class MamaTimer


  • public class MamaTimer
    extends java.lang.Object
    • Constructor Detail

      • MamaTimer

        public MamaTimer()
    • Method Detail

      • getPointerVal

        public long getPointerVal()
      • create

        public void create​(MamaQueue queue,
                           MamaTimerCallback callback,
                           double interval)
        Create a timer.
        Parameters:
        queue - The MamaQueue.
        callback - The object implementing the callback functions.
        interval - The timer interval in seconds.
      • create

        public void create​(MamaQueue queue,
                           MamaTimerCallback callback,
                           double interval,
                           java.lang.Object closure)
        Create a timer.
        Parameters:
        queue - The MamaQueue.
        callback - The object implementing the callback functions.
        interval - The timer interval in seconds.
        closure - The closure will be passed to subsequent callback invocations for this subscription.
      • destroy

        public void destroy()
      • resetInterval

        public void resetInterval​(double interval)
      • getInterval

        public double getInterval()
      • reset

        public void reset()
      • getClosure

        public java.lang.Object getClosure()