public class SizeBasedRotationPolicy extends Object implements RotationPolicy
Constructor and Description |
---|
SizeBasedRotationPolicy(long maxFileSizeInBytes)
Constructs a SizeBasedRotationPolicy given a max file size in bytes.
|
Modifier and Type | Method and Description |
---|---|
long |
getMaxFileSizeInBytes()
Gets the maximum size (in bytes) a file may grow to before being rotated.
|
boolean |
shouldRotateFile(RotatableObject file)
Indicates whether or not a
RotatableObject needs rotation. |
public SizeBasedRotationPolicy(long maxFileSizeInBytes)
maxFileSizeInBytes
- A max file size in bytes.public boolean shouldRotateFile(RotatableObject file)
RotatableObject
needs rotation.shouldRotateFile
in interface RotationPolicy
file
- The RotatableObject
to be checked.RotatableObject
needs rotation.
False - If the RotatableObject
doesn't need rotation.public long getMaxFileSizeInBytes()
Copyright © 2025 Open Identity Platform Community. All rights reserved.