public class TimeLimitRotationPolicy extends Object implements RotationPolicy
Constructor and Description |
---|
TimeLimitRotationPolicy(Duration rotationInterval)
Constructs a TimeLimitRotationPolicy with a given
Duration . |
Modifier and Type | Method and Description |
---|---|
Duration |
getRotationInterval()
Gets the rotation duration interval.
|
boolean |
shouldRotateFile(RotatableObject rotatable)
Checks whether or not a
RotatableObject needs rotation. |
public boolean shouldRotateFile(RotatableObject rotatable)
RotatableObject
needs rotation.shouldRotateFile
in interface RotationPolicy
rotatable
- The rotatable to be checked.RotatableObject
needs rotation.
False - If the RotatableObject
doesn't need rotation.Copyright © 2025 Open Identity Platform Community. All rights reserved.