Class CleanupTask.AtomicCloseTask

    • Constructor Detail

      • AtomicCloseTask

        public AtomicCloseTask​(String descriptor,
                               Logger logger,
                               AtomicReference<?> aRef)
        Creates a new CleanupTask.AtomicCloseTask for the designated AtomicReference, the designated descriptor and the designated 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.
        aRef - The atomic reference which to AutoCloseable.close() and set to null.