Class LockingReliabilityStrategy

    • Field Detail

      • reconfigureLock

        private final java.util.concurrent.locks.ReadWriteLock reconfigureLock
      • isStopping

        private volatile boolean isStopping
    • Constructor Detail

      • LockingReliabilityStrategy

        public LockingReliabilityStrategy​(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.
      • log

        public void log​(Supplier<LoggerConfig> reconfigured,
                        java.lang.String loggerName,
                        java.lang.String fqcn,
                        java.lang.StackTraceElement location,
                        Marker marker,
                        Level level,
                        Message data,
                        java.lang.Throwable t)
        Description copied from interface: LocationAwareReliabilityStrategy
        Logs an event.
        Specified by:
        log in interface LocationAwareReliabilityStrategy
        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.
        location - The location of the caller or null.
        marker - A Marker or null if none is present.
        level - The event Level.
        data - The Message.
        t - A Throwable or null.
      • beforeLogEvent

        private boolean beforeLogEvent()