org.opennms.protocols.snmp
Class SnmpTimer
java.lang.Object
org.opennms.protocols.snmp.SnmpTimer
- class SnmpTimer
- extends java.lang.Object
Provides a simple timer scheduler for use by the
internal SnmpSession class. Resolution is provided
at the millisecond level.
- Version:
- 1.1.1.1
- Author:
- Arie Ozarov
- See Also:
SnmpSession
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_timerLogic
private SnmpTimer.TimerLogic m_timerLogic
m_thread
private java.lang.Thread m_thread
SnmpTimer
public SnmpTimer()
schedule
public void schedule(java.lang.Runnable runnable,
long delay)
- Schedules the runnable to be run after AT LEAST ms milliseconds
of time has expired. The runnable may be invoked in a delayed
manner, but will not be run BEFORE ms milliseconds have expired.
cancel
public void cancel(boolean waitForAll)
- Cancel pending tasks and call interrupt on the thread of the current running task (if such exists)
- Parameters:
waitForAll
- true if you want to wait until the current task is completed
Generated by fnasser on ${TODAY} ${TSTAMP}.