Enum BackgroundProcessTask.LOCK_DURATION
- java.lang.Object
-
- java.lang.Enum<BackgroundProcessTask.LOCK_DURATION>
-
- org.silverpeas.core.backgroundprocess.BackgroundProcessTask.LOCK_DURATION
-
- All Implemented Interfaces:
Serializable
,Comparable<BackgroundProcessTask.LOCK_DURATION>
- Enclosing class:
- BackgroundProcessTask
public static enum BackgroundProcessTask.LOCK_DURATION extends Enum<BackgroundProcessTask.LOCK_DURATION>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A_DAY
AN_HALF_DAY
AN_HOUR
NO_TIME
TEN_SECONDS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDuration()
boolean
isNoMoreValid(long reference)
static BackgroundProcessTask.LOCK_DURATION
valueOf(String name)
Returns the enum constant of this type with the specified name.static BackgroundProcessTask.LOCK_DURATION[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_TIME
public static final BackgroundProcessTask.LOCK_DURATION NO_TIME
-
TEN_SECONDS
public static final BackgroundProcessTask.LOCK_DURATION TEN_SECONDS
-
AN_HOUR
public static final BackgroundProcessTask.LOCK_DURATION AN_HOUR
-
AN_HALF_DAY
public static final BackgroundProcessTask.LOCK_DURATION AN_HALF_DAY
-
A_DAY
public static final BackgroundProcessTask.LOCK_DURATION A_DAY
-
-
Method Detail
-
values
public static BackgroundProcessTask.LOCK_DURATION[] 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 (BackgroundProcessTask.LOCK_DURATION c : BackgroundProcessTask.LOCK_DURATION.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BackgroundProcessTask.LOCK_DURATION 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
-
getDuration
public long getDuration()
-
isNoMoreValid
public boolean isNoMoreValid(long reference)
-
-