public class FreeDiskSpaceRetentionPolicy extends Object implements RetentionPolicy
RetentionPolicy
that will retain/delete log files given a minimum amount of disk space the file system
must contain.Constructor and Description |
---|
FreeDiskSpaceRetentionPolicy(long minFreeSpaceRequired)
Constructs a
FreeDiskSpaceRetentionPolicy given a minimum amount of disk space the file system must
contain. |
Modifier and Type | Method and Description |
---|---|
List<File> |
deleteFiles(FileNamingPolicy fileNamingPolicy)
Returns all files that should be deleted according to the policy.
|
public FreeDiskSpaceRetentionPolicy(long minFreeSpaceRequired)
FreeDiskSpaceRetentionPolicy
given a minimum amount of disk space the file system must
contain.minFreeSpaceRequired
- The minimum amount of free disk space the the file system must contain in bytes.public List<File> deleteFiles(FileNamingPolicy fileNamingPolicy)
RetentionPolicy
deleteFiles
in interface RetentionPolicy
fileNamingPolicy
- The naming policy used generate the log file names.Copyright © 2025 Open Identity Platform Community. All rights reserved.