Class LoggingScheduledFuture<V>

    • Constructor Detail

      • LoggingScheduledFuture

        public LoggingScheduledFuture​(RunnableScheduledFuture<V> future,
                                      boolean resultRelevant,
                                      Logger logger)
        Creates a new future wrapping the designated RunnableScheduledFuture logging the outcome of the future if no one has retrieved it.
        Parameters:
        future - The RunnableScheduledFuture which to wrap.
        resultRelevant - Whether the result of the future is relevant and therefore it should be logged if it is not retrieved.
        logger - The logger for logging unhandled results, Exception, RuntimeException or Error.