Interface RollingFileMessageWriter.RollingPolicy

  • All Known Implementing Classes:
    SizeBasedRollingPolicy, TimeBasedRollingPolicy
    Enclosing class:
    RollingFileMessageWriter
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface RollingFileMessageWriter.RollingPolicy
    Interface for rolling policy implementations.
    • Method Detail

      • maybeUpdateCurrentFile

        void maybeUpdateCurrentFile​(@Nonnull
                                    RollingFileMessageWriter.CurrentFileUpdater onRollFile,
                                    boolean initialCall)
                             throws java.io.IOException
        Maybe call the current file updater.
        Parameters:
        onRollFile - The current file updater to call if the current file should roll over.
        initialCall - If this is the initial call, and the current file updater should be called regardless.
        Throws:
        java.io.IOException - If the file roll or update check failed.