Class PeriodicGravatarImageResolutionCacheFillingWorker
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
hudson.model.AsyncPeriodicWork
org.jenkinsci.plugins.gravatar.cache.PeriodicGravatarImageResolutionCacheFillingWorker
- All Implemented Interfaces:
ExtensionPoint,Runnable
Async periodic worker that updates the cached map in
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.- Author:
- Erik Ramfelt
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.AsyncPeriodicWork
nameFields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevel, queueIfAlreadyRunningMethods inherited from class hudson.model.PeriodicWork
all, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
PeriodicGravatarImageResolutionCacheFillingWorker
public PeriodicGravatarImageResolutionCacheFillingWorker()
-
-
Method Details
-
execute
- Specified by:
executein classAsyncPeriodicWork- Throws:
IOExceptionInterruptedException
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classPeriodicWork
-
getInitialDelay
public long getInitialDelay()- Overrides:
getInitialDelayin classPeriodicWork
-