Class CleanupTask.AbstractCleanupTask<EX extends Exception>

    • Field Detail

      • descriptor

        protected final String descriptor
        A string that meaningfully describes this task when used for logging etc. or null.
      • logger

        protected Logger logger
        The logger for messages and/or problems, e. g. unexpected exceptions.
    • Constructor Detail

      • AbstractCleanupTask

        protected AbstractCleanupTask​(Logger logger)
        Constructs a new CleanupTask.AbstractCleanupTask with a default descriptor and the given logger.
        Parameters:
        logger - The logger for messages and/or problems, e. g. unexpected exceptions.
      • AbstractCleanupTask

        protected AbstractCleanupTask​(String descriptor,
                                      Logger logger)
        Constructs a new CleanupTask.AbstractCleanupTask with the given descriptor and the given logger.
        Parameters:
        descriptor - A string that meaningfully describes this task when used for logging etc. or null.
        logger - The logger for messages and/or problems, e. g. unexpected exceptions.
    • Method Detail

      • getDescriptor

        public String getDescriptor()
        Description copied from interface: CleanupTask
        Gets a string that meaningfully describes or identifies this task when used in log message etc. When null is returned a descriptor will be automatically determined using #toString().
        Specified by:
        getDescriptor in interface CleanupTask<EX extends Exception>
        Returns:
        A string that meaningfully describes this task when used for logging etc. or null.