Enum RolloverFrequency
- java.lang.Object
-
- java.lang.Enum<RolloverFrequency>
-
- org.apache.logging.log4j.core.appender.rolling.RolloverFrequency
-
- All Implemented Interfaces:
Serializable
,Comparable<RolloverFrequency>
public enum RolloverFrequency extends Enum<RolloverFrequency>
Enumeration of rollover frequency values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNUALLY
Rollover annually.DAILY
Rollover daily.EVERY_MILLISECOND
Rollover every millisecond.EVERY_MINUTE
Rollover every minute.EVERY_SECOND
Rollover every second.HOURLY
Rollover every hour.MONTHLY
Rollover monthly.WEEKLY
Rollover weekly.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RolloverFrequency
valueOf(String name)
Returns the enum constant of this type with the specified name.static RolloverFrequency[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANNUALLY
public static final RolloverFrequency ANNUALLY
Rollover annually.
-
MONTHLY
public static final RolloverFrequency MONTHLY
Rollover monthly.
-
WEEKLY
public static final RolloverFrequency WEEKLY
Rollover weekly.
-
DAILY
public static final RolloverFrequency DAILY
Rollover daily.
-
HOURLY
public static final RolloverFrequency HOURLY
Rollover every hour.
-
EVERY_MINUTE
public static final RolloverFrequency EVERY_MINUTE
Rollover every minute.
-
EVERY_SECOND
public static final RolloverFrequency EVERY_SECOND
Rollover every second.
-
EVERY_MILLISECOND
public static final RolloverFrequency EVERY_MILLISECOND
Rollover every millisecond.
-
-
Method Detail
-
values
public static RolloverFrequency[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RolloverFrequency c : RolloverFrequency.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RolloverFrequency valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-