Package net.morimekta.providence.logging
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.RollingPolicyInterface for rolling policy implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmaybeUpdateCurrentFile(RollingFileMessageWriter.CurrentFileUpdater onRollFile, boolean initialCall)Maybe call the current file updater.
-
-
-
Method Detail
-
maybeUpdateCurrentFile
void maybeUpdateCurrentFile(@Nonnull RollingFileMessageWriter.CurrentFileUpdater onRollFile, boolean initialCall) throws java.io.IOExceptionMaybe 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.
-
-