Constructor and Description |
---|
CleanLogsTask() |
Modifier and Type | Method and Description |
---|---|
String |
getConfigKeyName()
Returns the name of the config key, which stores the hour of execution.
|
void |
runTimer()
Called every time the timer interval is fired.
|
public String getConfigKeyName()
EveryDay
getConfigKeyName
in interface EveryDay
public void runTimer() throws Exception
TimedTask
Note that only small computations can be done in this method. Computations which take longs must be executed in another executor as otherwise the timer will run out of schedule and start dropping tasks.
runTimer
in interface TimedTask
Exception
- in case anything goes wrong. Will be caught and handled using
Exceptions
Tasks.executor(String)
Copyright © 2018. All rights reserved.