LBM Timer class.
More...
|
struct | event_queue_cancel_callback_delegate_wrapper_t |
|
struct | lbm_event_queue_cancel_cb_info_t |
|
|
| LBMTimer (LBMContext lbmctx, long milliseconds) |
| Creates a timer associated with a specific context that expires with a specified delay. More...
|
|
| LBMTimer (LBMContext lbmctx, long milliseconds, LBMEventQueue lbmevq) |
| Creates a timer associated with a specific context and event queue that expires with a specified delay. More...
|
|
| LBMTimer (LBMContext lbmctx, long milliseconds, LBMTimerCallback cb, Object cbArg) |
| Creates a timer associated with a specific context that expires with a specified delay. More...
|
|
| LBMTimer (LBMContext lbmctx, long milliseconds, LBMTimerCallback cb, Object cbArg, LBMEventQueue lbmevq) |
| Creates a timer associated with a specific context and event queue that expires with a specified delay. More...
|
|
void | addTimerCallback (LBMTimerCallback cb) |
| Register a timer callback. More...
|
|
void | addTimerCallback (LBMTimerCallback cb, Object cbArg) |
| Register a timer callback (and callback token) More...
|
|
void | removeTimerCallback (LBMTimerCallback cb) |
| Deregister a timer callback. More...
|
|
void | removeTimerCallback (LBMTimerCallback cb, Object cbArg) |
| Deregister a timer callback. More...
|
|
void | cancel () |
| Cancel timer. More...
|
|
void | reschedule (long milliseconds) |
| Reschedule this timer to expire in a specified number of milliseconds. More...
|
|
void | Dispose () |
| Dispose of this timer object.
|
|
com.latencybusters.lbm.LBMTimer.LBMTimer |
( |
LBMContext |
lbmctx, |
|
|
long |
milliseconds |
|
) |
| |
Creates a timer associated with a specific context that expires with a specified delay.
A zero duration timer is legal and causes the associated callback to be called as soon as possible on the context thread.
- Parameters
-
lbmctx | LBMContext object with which to associate this timer (determines which LBM thread will execute the timer function) |
milliseconds | Number of milliseconds until the timer expires |
Creates a timer associated with a specific context and event queue that expires with a specified delay.
A zero duration timer is legal and causes the associated callback to be called as soon as possible on the context thread or to be enqueued as an event on the associated event queue. In this case, the event queue dispatching thread calls the associated callback after all currently pending events have been dispatched.
- Parameters
-
lbmctx | LBMContext object with which to associate this timer (determines which LBM thread will execute the timer function) |
milliseconds | Number of milliseconds until the timer expires |
lbmevq | Event queue with which to associate this timer (the timer events will be posted to this event queue) |
Creates a timer associated with a specific context that expires with a specified delay.
A zero duration timer is legal and causes the associated callback to be called as soon as possible on the context thread.
- Parameters
-
lbmctx | LBMContext object with which to associate this timer (determines which LBM thread will execute the timer function) |
milliseconds | Number of milliseconds until the timer expires |
cb | Callback implementing the LBMTimerCallback delegate interface |
cbArg | Callback object passed as token to callback interface |
Creates a timer associated with a specific context and event queue that expires with a specified delay.
A zero duration timer is legal and causes the associated callback to be called as soon as possible on the context thread or to be enqueued as an event on the associated event queue. In this case, the event queue dispatching thread calls the associated callback after all currently pending events have been dispatched.
- Parameters
-
lbmctx | LBMContext object with which to associate this timer (determines which LBM thread will execute the timer function) |
milliseconds | Number of milliseconds until the timer expires |
cb | Callback implementing the LBMTimerCallback delegate interface |
cbArg | Callback object passed as token to callback interface |
lbmevq | Event queue with which to associate this timer |
- Exceptions
-
References com.latencybusters.lbm.LBM.errorMessage(), and com.latencybusters.lbm.LBM.errorNumber().
void com.latencybusters.lbm.LBMTimer.addTimerCallback |
( |
LBMTimerCallback |
cb, |
|
|
Object |
cbArg |
|
) |
| |
Register a timer callback (and callback token)
- See also
- LBMTimerCallback
-
removeTimerCallback
- Parameters
-
cb | Callback implementing the LBMTimerCallback delegate interface |
cbArg | Callback token object |
void com.latencybusters.lbm.LBMTimer.cancel |
( |
| ) |
|
Deregister a timer callback.
- See also
- LBMTimerCallback
-
addTimerCallback
- Parameters
-
cb | Previously registered callback implementing the LBMTimerCallback delegate interface |
void com.latencybusters.lbm.LBMTimer.removeTimerCallback |
( |
LBMTimerCallback |
cb, |
|
|
Object |
cbArg |
|
) |
| |
void com.latencybusters.lbm.LBMTimer.reschedule |
( |
long |
milliseconds | ) |
|
The documentation for this class was generated from the following file: