public static class MutableThreadContextMapFilter.Builder extends AbstractFilter.AbstractFilterBuilder<MutableThreadContextMapFilter.Builder> implements Builder<MutableThreadContextMapFilter>
ATTR_ON_MATCH, ATTR_ON_MISMATCH
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
asBuilder, getOnMatch, getOnMismatch, setOnMatch, setOnMismatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPrefix, isValid
public MutableThreadContextMapFilter.Builder setConfiguration(Configuration configuration)
configuration
- The Configuration.public MutableThreadContextMapFilter.Builder setPollInterval(long pollInterval)
pollInterval
- interval in seconds to check the file for changes.public MutableThreadContextMapFilter.Builder setConfigLocation(String configLocation)
configLocation
- the location of the configuration.public MutableThreadContextMapFilter build()
Builder
build
in interface Builder<MutableThreadContextMapFilter>
Copyright © 1999-2023 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.