JoeSNMP API 0.3.3

org.opennms.protocols.snmp
Class SnmpTimer

java.lang.Object
  extended by 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

Nested Class Summary
private static class SnmpTimer.TimerElement
           
private static class SnmpTimer.TimerLogic
           
 
Field Summary
private  java.lang.Thread m_thread
           
private  SnmpTimer.TimerLogic m_timerLogic
           
 
Constructor Summary
SnmpTimer()
           
 
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
 

Field Detail

m_timerLogic

private SnmpTimer.TimerLogic m_timerLogic

m_thread

private java.lang.Thread m_thread
Constructor Detail

SnmpTimer

public SnmpTimer()
Method Detail

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.

Parameters:
runner - The runnable object
ms - The number of milliseconds to wait

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

JoeSNMP API 0.3.3

Generated by abuild on ${TODAY} ${TSTAMP}.