public final class ReliabilityStrategyFactory extends Object
Modifier and Type | Method and Description |
---|---|
static ReliabilityStrategy |
getReliabilityStrategy(LoggerConfig loggerConfig)
Returns a new
ReliabilityStrategy instance based on the value of system property
log4j.ReliabilityStrategy . |
public static ReliabilityStrategy getReliabilityStrategy(LoggerConfig loggerConfig)
ReliabilityStrategy
instance based on the value of system property
log4j.ReliabilityStrategy
. If not value was specified this method returns a new
AwaitUnconditionallyReliabilityStrategy
.
Valid values for this system property are "AwaitUnconditionally"
(use
AwaitUnconditionallyReliabilityStrategy
), "Locking"
(use LockingReliabilityStrategy
) and
"AwaitCompletion"
(use the default AwaitCompletionReliabilityStrategy
).
Users may also use this system property to specify the fully qualified class name of a class that implements the
ReliabilityStrategy
and has a constructor that accepts a single LoggerConfig
argument.
loggerConfig
- the LoggerConfig the resulting ReliabilityStrategy
is associated withCopyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.