Package org.jboss.logmanager.handlers
Enum PeriodicRotatingFileHandler.Period
- java.lang.Object
-
- java.lang.Enum<PeriodicRotatingFileHandler.Period>
-
- org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.Period
-
- All Implemented Interfaces:
Serializable
,Comparable<PeriodicRotatingFileHandler.Period>
- Enclosing class:
- PeriodicRotatingFileHandler
public static enum PeriodicRotatingFileHandler.Period extends Enum<PeriodicRotatingFileHandler.Period>
Possible period values. Keep in strictly ascending order of magnitude.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PeriodicRotatingFileHandler.Period
valueOf(String name)
Returns the enum constant of this type with the specified name.static PeriodicRotatingFileHandler.Period[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MINUTE
public static final PeriodicRotatingFileHandler.Period MINUTE
-
HOUR
public static final PeriodicRotatingFileHandler.Period HOUR
-
HALF_DAY
public static final PeriodicRotatingFileHandler.Period HALF_DAY
-
DAY
public static final PeriodicRotatingFileHandler.Period DAY
-
WEEK
public static final PeriodicRotatingFileHandler.Period WEEK
-
MONTH
public static final PeriodicRotatingFileHandler.Period MONTH
-
YEAR
public static final PeriodicRotatingFileHandler.Period YEAR
-
NEVER
public static final PeriodicRotatingFileHandler.Period NEVER
-
-
Method Detail
-
values
public static PeriodicRotatingFileHandler.Period[] 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 (PeriodicRotatingFileHandler.Period c : PeriodicRotatingFileHandler.Period.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PeriodicRotatingFileHandler.Period 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
-
-