public interface Timer
Modifier and Type | Interface and Description |
---|---|
static interface |
Timer.TimerCallback
An interface implemented by requester.
|
static interface |
Timer.TimerNode
An interface implemented by TimerFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
scheduleAfterDelay(Timer.TimerNode timerNode,
double delay)
Scheduler a call back after a specified delay.
|
void |
schedulePeriodic(Timer.TimerNode timerNode,
double delay,
double period)
Schedule a periodic call back.
|
void |
stop()
Stop the timer.
|
void scheduleAfterDelay(Timer.TimerNode timerNode, double delay)
timerNode
- The TimerNode allocated via a call to TimerFactory.createNode.delay
- The delay in seconds.void schedulePeriodic(Timer.TimerNode timerNode, double delay, double period)
timerNode
- The TimerNode allocated via a call to createNode.delay
- The delay in seconds to the first callback.period
- The period in seconds.void stop()
Copyright © 2014. All Rights Reserved.