Class TimeBasedDirectoryCleanerConfig

    • Field Detail

      • DEFAULT_INITIAL_DELAY_MILLIS

        public static final io.dropwizard.util.Duration DEFAULT_INITIAL_DELAY_MILLIS
      • SHUTDOWN_DURATION

        public static final io.dropwizard.util.Duration SHUTDOWN_DURATION
    • Constructor Detail

      • TimeBasedDirectoryCleanerConfig

        public TimeBasedDirectoryCleanerConfig()
    • Method Detail

      • scheduleCleanupUsing

        public TimeBasedDirectoryCleaner scheduleCleanupUsing​(io.dropwizard.setup.Environment environment)
        Schedules directory cleanup and registers a TimeBasedDirectoryCleanerHealthCheck health check using the given Environment, returning the TimeBasedDirectoryCleaner instance that was scheduled. It can then be used to retrieve delete error information.
        Parameters:
        environment - the Dropwizard Environment to use
        Returns:
        a new TimeBasedDirectoryCleaner using the given environment