public class SizeBasedRollingPolicy extends Object implements RollingFileMessageWriter.RollingPolicy
Constructor and Description |
---|
SizeBasedRollingPolicy(File directory,
long rollOnFileSizeInBytes,
String fileNameFormat) |
Modifier and Type | Method and Description |
---|---|
void |
maybeUpdateCurrentFile(RollingFileMessageWriter.CurrentFileUpdater onRollFile,
boolean initialCall)
Maybe call the current file updater.
|
public void maybeUpdateCurrentFile(@Nonnull RollingFileMessageWriter.CurrentFileUpdater onRollFile, boolean initialCall) throws IOException
RollingFileMessageWriter.RollingPolicy
maybeUpdateCurrentFile
in interface RollingFileMessageWriter.RollingPolicy
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.IOException
- If the file roll or update check failed.Copyright © 2015–2017 morimekta.net. All rights reserved.