public static enum TimedRotationPolicy.TimeUnit extends Enum<TimedRotationPolicy.TimeUnit>
Modifier and Type | Method and Description |
---|---|
long |
getMilliSeconds() |
static TimedRotationPolicy.TimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimedRotationPolicy.TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimedRotationPolicy.TimeUnit SECONDS
public static final TimedRotationPolicy.TimeUnit MINUTES
public static final TimedRotationPolicy.TimeUnit HOURS
public static final TimedRotationPolicy.TimeUnit DAYS
public static TimedRotationPolicy.TimeUnit[] values()
for (TimedRotationPolicy.TimeUnit c : TimedRotationPolicy.TimeUnit.values()) System.out.println(c);
public static TimedRotationPolicy.TimeUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long getMilliSeconds()
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.