Package com.wombat.mama
Class MamaTimer
- java.lang.Object
-
- com.wombat.mama.MamaTimer
-
public class MamaTimer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MamaTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(MamaQueue queue, MamaTimerCallback callback, double interval)
Create a timer.void
create(MamaQueue queue, MamaTimerCallback callback, double interval, java.lang.Object closure)
Create a timer.void
destroy()
java.lang.Object
getClosure()
double
getInterval()
long
getPointerVal()
void
reset()
void
resetInterval(double interval)
-
-
-
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()
-
-