|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ExpirationStrategy>
com.genesyslab.platform.logging.configuration.ExpirationStrategy
public enum ExpirationStrategy
Describes the possible type of log file expiration.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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.
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is null
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |