class SnmpTimer
extends java.lang.Object
SnmpSession
Modifier and Type | Class and Description |
---|---|
private static class |
SnmpTimer.TimerElement |
private static class |
SnmpTimer.TimerLogic |
Modifier and Type | Field and Description |
---|---|
private java.lang.Thread |
m_thread |
private SnmpTimer.TimerLogic |
m_timerLogic |
Constructor and Description |
---|
SnmpTimer() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(boolean waitForAll)
Cancel pending tasks and call interrupt on the thread of the current running task (if such exists)
|
void |
schedule(java.lang.Runnable runnable,
long delay)
Schedules the runnable to be run after AT LEAST ms milliseconds
of time has expired.
|
private SnmpTimer.TimerLogic m_timerLogic
private java.lang.Thread m_thread
public void schedule(java.lang.Runnable runnable, long delay)
runner
- The runnable objectms
- The number of milliseconds to waitpublic void cancel(boolean waitForAll)
waitForAll
- true if you want to wait until the current task is completedGenerated by iurt on 2015.