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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.setConfigLocation
(String configLocation) Sets the configuration to use.setConfiguration
(Configuration configuration) Sets the Configuration.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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setConfiguration
Sets the Configuration.- Parameters:
configuration
- The Configuration.- Returns:
- this.
-
setPollInterval
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
Sets the configuration to use.- Parameters:
configLocation
- the location of the configuration.- Returns:
- this
-
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.
-