Class AwaitCompletionReliabilityStrategy

  • All Implemented Interfaces:
    ReliabilityStrategy

    public class AwaitCompletionReliabilityStrategy
    extends java.lang.Object
    implements ReliabilityStrategy
    ReliabilityStrategy that counts the number of threads that have started to log an event but have not completed yet, and waits for these threads to finish before allowing the appenders to be stopped.
    • Constructor Detail

      • AwaitCompletionReliabilityStrategy

        public AwaitCompletionReliabilityStrategy​(LoggerConfig loggerConfig)
    • Method Detail

      • log

        public void log​(Supplier<LoggerConfig> reconfigured,
                        java.lang.String loggerName,
                        java.lang.String fqcn,
                        Marker marker,
                        Level level,
                        Message data,
                        java.lang.Throwable t)
        Description copied from interface: ReliabilityStrategy
        Logs an event.
        Specified by:
        log in interface ReliabilityStrategy
        Parameters:
        reconfigured - supplies the next LoggerConfig if the strategy's LoggerConfig is no longer active
        loggerName - The name of the Logger.
        fqcn - The fully qualified class name of the caller.
        marker - A Marker or null if none is present.
        level - The event Level.
        data - The Message.
        t - A Throwable or null.