Class DirectWriteRolloverStrategy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • getMaxFiles

        public String getMaxFiles()
      • withMaxFiles

        public DirectWriteRolloverStrategy.Builder withMaxFiles​(String maxFiles)
        Defines the maximum number of files to keep.
        Parameters:
        maxFiles - The maximum number of files that match the date portion of the pattern to keep.
        Returns:
        This builder for chaining convenience
      • getCompressionLevelStr

        public String getCompressionLevelStr()
      • withCompressionLevelStr

        public DirectWriteRolloverStrategy.Builder withCompressionLevelStr​(String compressionLevelStr)
        Defines compression level.
        Parameters:
        compressionLevelStr - The compression level, 0 (less) through 9 (more); applies only to ZIP files.
        Returns:
        This builder for chaining convenience
      • getCustomActions

        public Action[] getCustomActions()
      • withCustomActions

        public DirectWriteRolloverStrategy.Builder withCustomActions​(Action[] customActions)
        Defines custom actions.
        Parameters:
        customActions - custom actions to perform asynchronously after rollover
        Returns:
        This builder for chaining convenience
      • isStopCustomActionsOnError

        public boolean isStopCustomActionsOnError()
      • withStopCustomActionsOnError

        public DirectWriteRolloverStrategy.Builder withStopCustomActionsOnError​(boolean stopCustomActionsOnError)
        Defines whether to stop executing asynchronous actions if an error occurs.
        Parameters:
        stopCustomActionsOnError - whether to stop executing asynchronous actions if an error occurs
        Returns:
        This builder for chaining convenience
      • getTempCompressedFilePattern

        public String getTempCompressedFilePattern()
      • withTempCompressedFilePattern

        public DirectWriteRolloverStrategy.Builder withTempCompressedFilePattern​(String tempCompressedFilePattern)
        Defines temporary compression file pattern.
        Parameters:
        tempCompressedFilePattern - File pattern of the working file pattern used during compression, if null no temporary file are used
        Returns:
        This builder for chaining convenience