public class UCPTimerManagerImpl extends Object implements TimerManager
| Constructor and Description |
|---|
UCPTimerManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning()
Checks if manager is running.
|
TimerHandle |
schedule(TimerTask task,
long delay,
long interval)
Submits one timer task to execute periodically.
|
TimerHandle |
scheduleAtFixedRate(TimerTask task,
long delay,
long interval)
Submits one timer task to execute periodically at fixed rate.
|
void |
start()
Starts timer manager and prepares it to work.
|
void |
stop()
Shuts timer manager down and cleans everything up.
|
public boolean isRunning()
TimerManagerisRunning in interface TimerManagerpublic TimerHandle schedule(TimerTask task, long delay, long interval)
TimerManagerschedule in interface TimerManagertask - task to execute.delay - delay to start task
in milliseconds.interval - task invocation interval
in milliseconds.public TimerHandle scheduleAtFixedRate(TimerTask task, long delay, long interval)
TimerManagerscheduleAtFixedRate in interface TimerManagertask - task to execute.delay - delay to start task
in milliseconds.interval - task invocation interval
in milliseconds.public void start()
TimerManagerstart in interface TimerManagerpublic void stop()
TimerManagerstop in interface TimerManager
Copyright © 2008, 2016, Oracle. All rights reserved.