@Extension public class PeriodicGravatarImageResolutionCacheFillingWorker extends AsyncPeriodicWork
UserGravatarResolver
It will run at startup and every 30 minutes to check if any user has set a gravatar
since last run. The UserGravatarResolver will cache the check for gravatars
so the time required when showing the People pages will be as short as possible. This
worker task makes sure that the cache is updated every 30 minutes.SafeTimerTask.ExceptionRunnableExtensionPoint.LegacyInstancesAreScopedToHudsonnameDAY, HOUR, logger, MIN| Constructor and Description |
|---|
PeriodicGravatarImageResolutionCacheFillingWorker() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(TaskListener listener) |
long |
getInitialDelay() |
long |
getRecurrencePeriod() |
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevelall, initgetLogsRoot, of, runcancel, scheduledExecutionTimepublic PeriodicGravatarImageResolutionCacheFillingWorker()
protected void execute(TaskListener listener) throws IOException, InterruptedException
execute in class AsyncPeriodicWorkIOExceptionInterruptedExceptionpublic long getRecurrencePeriod()
getRecurrencePeriod in class PeriodicWorkpublic long getInitialDelay()
getInitialDelay in class PeriodicWorkCopyright © 2016–2021. All rights reserved.