public class AwaitUnconditionallyReliabilityStrategy extends java.lang.Object implements ReliabilityStrategy
| Modifier and Type | Field and Description |
|---|---|
private static long |
DEFAULT_SLEEP_MILLIS |
private LoggerConfig |
loggerConfig |
private static long |
SLEEP_MILLIS |
| Constructor and Description |
|---|
AwaitUnconditionallyReliabilityStrategy(LoggerConfig loggerConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterLogEvent()
Called after a log event was logged.
|
void |
beforeStopAppenders()
Called before all appenders are stopped.
|
void |
beforeStopConfiguration(Configuration configuration)
Called before the configuration is stopped.
|
LoggerConfig |
getActiveLoggerConfig(Supplier<LoggerConfig> next)
For internal use by the ReliabilityStrategy; returns the LoggerConfig to use.
|
void |
log(Supplier<LoggerConfig> reconfigured,
LogEvent event)
Logs an event.
|
void |
log(Supplier<LoggerConfig> reconfigured,
java.lang.String loggerName,
java.lang.String fqcn,
Marker marker,
Level level,
Message data,
java.lang.Throwable t)
Logs an event.
|
private static long |
sleepMillis() |
private static final long DEFAULT_SLEEP_MILLIS
private static final long SLEEP_MILLIS
private final LoggerConfig loggerConfig
public AwaitUnconditionallyReliabilityStrategy(LoggerConfig loggerConfig)
private static long sleepMillis()
public void log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, Marker marker, Level level, Message data, java.lang.Throwable t)
ReliabilityStrategylog in interface ReliabilityStrategyreconfigured - supplies the next LoggerConfig if the strategy's LoggerConfig is no longer activeloggerName - 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.public void log(Supplier<LoggerConfig> reconfigured, LogEvent event)
ReliabilityStrategylog in interface ReliabilityStrategyreconfigured - supplies the next LoggerConfig if the strategy's LoggerConfig is no longer activeevent - The log event.public LoggerConfig getActiveLoggerConfig(Supplier<LoggerConfig> next)
ReliabilityStrategygetActiveLoggerConfig in interface ReliabilityStrategynext - supplies the next LoggerConfig if the strategy's LoggerConfig is no longer activepublic void afterLogEvent()
ReliabilityStrategyafterLogEvent in interface ReliabilityStrategypublic void beforeStopAppenders()
ReliabilityStrategybeforeStopAppenders in interface ReliabilityStrategypublic void beforeStopConfiguration(Configuration configuration)
ReliabilityStrategybeforeStopConfiguration in interface ReliabilityStrategyconfiguration - the configuration that will be stopped