public class FixedTimeRotationPolicy extends Object implements RotationPolicy
| Constructor and Description |
|---|
FixedTimeRotationPolicy(List<Duration> rotationTimes)
Constructs a
FixedTimeRotationPolicy given a list of milliseconds after midnight to rotateIfNeeded the
files. |
| Modifier and Type | Method and Description |
|---|---|
List<Duration> |
getDailyRotationTimes()
Get the list of times since midnight that rotation will occur at.
|
boolean |
shouldRotateFile(RotatableObject rotatable)
This method indicates if the log file should be rotated or not.
|
public FixedTimeRotationPolicy(List<Duration> rotationTimes)
FixedTimeRotationPolicy given a list of milliseconds after midnight to rotateIfNeeded the
files.rotationTimes - List of Duration objects specifying the time after midnight to rotate the log file.public boolean shouldRotateFile(RotatableObject rotatable)
shouldRotateFile in interface RotationPolicyrotatable - The file to be checked.Copyright © 2025 Open Identity Platform Community. All rights reserved.