Class RemoveOldBatchJobs


  • public class RemoveOldBatchJobs
    extends Object
    Periodically delete Batch Jobs older than the specified number of days, along with all the Batch Jobs associated request and result data.
    • Constructor Detail

      • RemoveOldBatchJobs

        public RemoveOldBatchJobs()
    • Method Detail

      • removeOldJobs

        public void removeOldJobs()
      • setBatchJobService

        public void setBatchJobService​(BatchJobService batchJobService)
      • setDaysToKeepOldJobs

        public void setDaysToKeepOldJobs​(int daysToKeepOldJobs)
        Set the number of days for which old jobs should be kept. Batch Jobs older than this number of days will be periodically deleted, along with their associated request and result data.
        Parameters:
        daysToKeepOldJobs - The Number of days for which old jobs should be kept.