Class TemporaryDataManagementSetting


  • public class TemporaryDataManagementSetting
    extends Object
    All settings around the temporary data management services.
    Author:
    Yohann Chastagnier
    • Method Detail

      • getJobCron

        public static String getJobCron()
        Gets the CRON setting for the scheduler of the cleaning job.
        Returns:
        a string that represents a cron setting.
      • getTimeAfterThatFilesMustBeDeleted

        public static long getTimeAfterThatFilesMustBeDeleted()
        Gets the time after that a file, according to its last modified date, must be deleted.
        Returns:
        a time in milliseconds, 0 or negative value if files must be deleted each time the cleaning job is awaken up by the scheduler.
      • getTimeAfterThatFilesMustBeDeletedAtServerStart

        public static long getTimeAfterThatFilesMustBeDeletedAtServerStart()
        Gets the time after that a file, according to its last modified date, must be deleted at server start.
        Returns:
        a time in milliseconds, 0 if files must be deleted immediately, -1 if no deletion at server start.