Class MutableThreadContextMapFilter.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder<MutableThreadContextMapFilter.Builder>
-
- org.apache.logging.log4j.core.filter.MutableThreadContextMapFilter.Builder
-
- All Implemented Interfaces:
Builder<MutableThreadContextMapFilter>
- Enclosing class:
- MutableThreadContextMapFilter
public static class MutableThreadContextMapFilter.Builder extends AbstractFilter.AbstractFilterBuilder<MutableThreadContextMapFilter.Builder> implements Builder<MutableThreadContextMapFilter>
-
-
Field Summary
-
Fields inherited from class org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder
ATTR_ON_MATCH, ATTR_ON_MISMATCH
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableThreadContextMapFilter
build()
Builds the object after all configuration has been set.MutableThreadContextMapFilter.Builder
setConfigLocation(String configLocation)
Sets the configuration to use.MutableThreadContextMapFilter.Builder
setConfiguration(Configuration configuration)
Sets the Configuration.MutableThreadContextMapFilter.Builder
setPollInterval(long pollInterval)
Set the frequency in seconds that changes to the list a ThreadContext valudes should be checked.-
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder
asBuilder, getOnMatch, getOnMismatch, setOnMatch, setOnMismatch
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
-
-
-
Method Detail
-
setConfiguration
public MutableThreadContextMapFilter.Builder setConfiguration(Configuration configuration)
Sets the Configuration.- Parameters:
configuration
- The Configuration.- Returns:
- this.
-
setPollInterval
public MutableThreadContextMapFilter.Builder setPollInterval(long pollInterval)
Set the frequency in seconds that changes to the list a ThreadContext valudes should be checked.- Parameters:
pollInterval
- interval in seconds to check the file for changes.- Returns:
- this.
-
setConfigLocation
public MutableThreadContextMapFilter.Builder setConfigLocation(String configLocation)
Sets the configuration to use.- Parameters:
configLocation
- the location of the configuration.- Returns:
- this
-
build
public MutableThreadContextMapFilter build()
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<MutableThreadContextMapFilter>
- Returns:
- the configured instance.
-
-