public static class DirectWriteRolloverStrategy.Builder extends Object implements Builder<DirectWriteRolloverStrategy>
Constructor and Description |
---|
Builder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPrefix, isValid
public DirectWriteRolloverStrategy build()
Builder
build
in interface Builder<DirectWriteRolloverStrategy>
public String getMaxFiles()
public DirectWriteRolloverStrategy.Builder withMaxFiles(String maxFiles)
maxFiles
- The maximum number of files that match the date portion of the pattern to keep.public String getCompressionLevelStr()
public DirectWriteRolloverStrategy.Builder withCompressionLevelStr(String compressionLevelStr)
compressionLevelStr
- The compression level, 0 (less) through 9 (more); applies only to ZIP files.public Action[] getCustomActions()
public DirectWriteRolloverStrategy.Builder withCustomActions(Action[] customActions)
customActions
- custom actions to perform asynchronously after rolloverpublic boolean isStopCustomActionsOnError()
public DirectWriteRolloverStrategy.Builder withStopCustomActionsOnError(boolean stopCustomActionsOnError)
stopCustomActionsOnError
- whether to stop executing asynchronous actions if an error occurspublic String getTempCompressedFilePattern()
public DirectWriteRolloverStrategy.Builder withTempCompressedFilePattern(String tempCompressedFilePattern)
tempCompressedFilePattern
- File pattern of the working file pattern used during compression, if null no temporary file are usedpublic Configuration getConfig()
public DirectWriteRolloverStrategy.Builder withConfig(Configuration config)
config
- The Configuration. 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.