Package org.forgerock.audit.rotation
Interface RotationPolicy
-
- All Known Implementing Classes:
FixedTimeRotationPolicy
,SizeBasedRotationPolicy
,TimeLimitRotationPolicy
public interface RotationPolicy
Interface to decide if a file should be rotated or not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldRotateFile(RotatableObject file)
This method indicates if the log file should be rotated or not.
-
-
-
Method Detail
-
shouldRotateFile
boolean shouldRotateFile(RotatableObject file)
This method indicates if the log file should be rotated or not.- Parameters:
file
- The file to be checked.- Returns:
- True if the log file should be rotated, false otherwise.
-
-