Class PurgeThumbnailJob

java.lang.Object
org.codelibs.fess.job.PurgeThumbnailJob

public class PurgeThumbnailJob extends Object
Job for purging expired thumbnail files from the system. This job removes thumbnail files that have exceeded their configured expiration time to prevent disk space from being consumed by old thumbnails.
  • Constructor Details

    • PurgeThumbnailJob

      public PurgeThumbnailJob()
      Default constructor for PurgeThumbnailJob. Creates a new instance of the thumbnail purging job with default expiry time (30 days).
  • Method Details

    • execute

      public String execute()
      Executes the thumbnail purging job. Removes thumbnail files that have exceeded the configured expiration time.
      Returns:
      a string containing the execution result with the number of deleted files or error message
    • getExpiry

      public long getExpiry()
      Gets the expiration time for thumbnails.
      Returns:
      the expiration time in milliseconds
    • expiry

      public PurgeThumbnailJob expiry(long expiry)
      Sets the expiration time for thumbnails.
      Parameters:
      expiry - the expiration time in milliseconds (must be positive)
      Returns:
      this PurgeThumbnailJob instance for method chaining