Package org.epics.pvdata.misc
Interface Timer
-
public interface TimerSchedule a callback to be called via a timer thread. A Timer is created via TimerFactory.- Author:
- mrk
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTimer.TimerCallbackAn interface implemented by requester.static interfaceTimer.TimerNodeAn interface implemented by TimerFactory.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidscheduleAfterDelay(Timer.TimerNode timerNode, double delay)Scheduler a call back after a specified delay.voidschedulePeriodic(Timer.TimerNode timerNode, double delay, double period)Schedule a periodic call back.voidstop()Stop the timer.
-
-
-
Method Detail
-
scheduleAfterDelay
void scheduleAfterDelay(Timer.TimerNode timerNode, double delay)
Scheduler a call back after a specified delay.- Parameters:
timerNode- the TimerNode allocated via a call to TimerFactory.createNodedelay- the delay in seconds
-
schedulePeriodic
void schedulePeriodic(Timer.TimerNode timerNode, double delay, double period)
Schedule a periodic call back.- Parameters:
timerNode- the TimerNode allocated via a call to createNodedelay- the delay in seconds to the first callbackperiod- the period in seconds
-
stop
void stop()
Stop the timer.
-
-