| Constructor and Description |
|---|
SizePolicy() |
SizePolicy(String argument) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
continueCurrentFile(byte[] entry)
Checks if a log entry can be appended to the current log file.
|
boolean |
continueExistingFile(String path)
Checks if an existing log file can be continued.
|
void |
reset()
Resets this policy as a new log file has been started.
|
public SizePolicy()
public SizePolicy(String argument)
argument - Maximum size for log file (e.g. "16MB")IllegalArgumentException - Invalid or unsupported maximum sizepublic boolean continueExistingFile(String path)
PolicycontinueExistingFile in interface Policypath - Path to log filetrue if existing log file can be continued, false if a new log file should be createdpublic boolean continueCurrentFile(byte[] entry)
PolicycontinueCurrentFile in interface Policyentry - Log entrytrue if log entry can be appended to the current log file, false if a new log file should
be createdCopyright © 2020. All rights reserved.