public static class FileBasedEventHandlerConfiguration.FileRetention extends Object
Modifier and Type | Field and Description |
---|---|
static long |
ANY_DISK_SPACE
The disk space value when disk space is unrestricted.
|
static int |
UNLIMITED_HISTORY_FILES
The value of number of history files to use when the value is unlimited.
|
Constructor and Description |
---|
FileRetention() |
Modifier and Type | Method and Description |
---|---|
List<RetentionPolicy> |
buildRetentionPolicies()
Builds
RetentionPolicy instances from configuration options. |
long |
getMaxDiskSpaceToUse()
Gets the maximum disk space the audit logs can occupy.
|
int |
getMaxNumberOfHistoryFiles()
Gets the maximum number of historical log files to retain. -1 disables pruning of old history files.
|
long |
getMinFreeSpaceRequired()
Gets the minimum free space the system must contain.
|
void |
setMaxDiskSpaceToUse(long maxDiskSpaceToUse)
Sets the maximum disk space the audit logs can occupy.
|
void |
setMaxNumberOfHistoryFiles(int maxNumberOfHistoryFiles)
Sets the maximum number of historical log files to retain. -1 disables pruning of old history files.
|
void |
setMinFreeSpaceRequired(long minFreeSpaceRequired)
Sets the minimum free space the system must contain.
|
public static final int UNLIMITED_HISTORY_FILES
public static final long ANY_DISK_SPACE
public int getMaxNumberOfHistoryFiles()
public void setMaxNumberOfHistoryFiles(int maxNumberOfHistoryFiles)
maxNumberOfHistoryFiles
- The maximum number of log files. -1 disables pruning of old history files.public long getMaxDiskSpaceToUse()
public void setMaxDiskSpaceToUse(long maxDiskSpaceToUse)
maxDiskSpaceToUse
- The maximum disk space the audit logs can occupy.public long getMinFreeSpaceRequired()
public void setMinFreeSpaceRequired(long minFreeSpaceRequired)
minFreeSpaceRequired
- The minimum free space the system must contain.public List<RetentionPolicy> buildRetentionPolicies()
RetentionPolicy
instances from configuration options.RetentionPolicy
instancesCopyright © 2025 Open Identity Platform Community. All rights reserved.