public enum ExpirationStrategy extends java.lang.Enum<ExpirationStrategy>
Enum Constant | Description |
---|---|
NumberOfFiles |
The expiration is based on the number of files with the same log name in
the folder.
|
Off |
The expiration is turned off.
|
TimeBased |
The expiration is based on the file age.
|
Modifier and Type | Method | Description |
---|---|---|
static ExpirationStrategy |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ExpirationStrategy[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpirationStrategy Off
ExpirationConfiguration.Expire
property is ignored.public static final ExpirationStrategy NumberOfFiles
IFileConfiguration
If the number of such files exceeds the value, set
via ExpirationConfiguration.Expire
, the oldest files will be deleted. The number of deleted file is equal
to 'currentFilesNumber - maxAllowedFilesNumber'public static final ExpirationStrategy TimeBased
ExpirationConfiguration.Expire
days are deleted.public static ExpirationStrategy[] values()
for (ExpirationStrategy c : ExpirationStrategy.values()) System.out.println(c);
public static ExpirationStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.