Class TimerImpl
- java.lang.Object
-
- java.util.TimerTask
-
- com.anaptecs.jeaf.core.servicechannel.unmanaged.TimerImpl
-
- All Implemented Interfaces:
java.lang.Runnable
public class TimerImpl extends java.util.TimerTask
Time task can be used to request the notification of all triggers.- Version:
- 1.0
- Author:
- JEAF Development Team
-
-
Constructor Summary
Constructors Constructor Description TimerImpl(GenericLifecycleManager pLifecycleManager)
Initialize object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Run method requests life cycle manager to notify all registered triggers.void
start(int pInterval, int pDelay)
Method starts the timer with the passed interval.void
stop()
Method stops the timer.
-
-
-
Constructor Detail
-
TimerImpl
public TimerImpl(GenericLifecycleManager pLifecycleManager)
Initialize object. Therefore the used life cycle manager has to be passed.- Parameters:
pLifecycleManager
- LifecycleManager to use. The parameter must not be null.
-
-
Method Detail
-
run
public void run()
Run method requests life cycle manager to notify all registered triggers.- Specified by:
run
in interfacejava.lang.Runnable
- Specified by:
run
in classjava.util.TimerTask
-
start
public void start(int pInterval, int pDelay)
Method starts the timer with the passed interval.- Parameters:
pInterval
- Scheduling interval in seconds that should be used.pDelay
- Delay in seconds until the scheduling starts the first time.
-
stop
public void stop()
Method stops the timer.
-
-