public enum SimpleTriggerPropertyUnit extends Enum<SimpleTriggerPropertyUnit>
QuartzSimpleTrigger
in property
(QuartzSimpleTrigger.repeatIntervalProperty()
).
Unit can be set in QuartzSimpleTrigger.intervalPropertyUnit()
.
QuartzJob
,
QuartzSimpleTrigger.intervalPropertyUnit()
Enum Constant and Description |
---|
MILLIS
Interval in property
QuartzSimpleTrigger.repeatIntervalProperty() is saved in millis. |
MINUTES
Interval in property
QuartzSimpleTrigger.repeatIntervalProperty() is saved in minutes. |
SECONDS
Interval in property
QuartzSimpleTrigger.repeatIntervalProperty() is saved in seconds. |
Modifier and Type | Method and Description |
---|---|
long |
getIntervalInMillis(long interval)
Gets time unit interval in millis.
|
static SimpleTriggerPropertyUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleTriggerPropertyUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleTriggerPropertyUnit MILLIS
QuartzSimpleTrigger.repeatIntervalProperty()
is saved in millis.public static final SimpleTriggerPropertyUnit SECONDS
QuartzSimpleTrigger.repeatIntervalProperty()
is saved in seconds.public static final SimpleTriggerPropertyUnit MINUTES
QuartzSimpleTrigger.repeatIntervalProperty()
is saved in minutes.public static SimpleTriggerPropertyUnit[] values()
for (SimpleTriggerPropertyUnit c : SimpleTriggerPropertyUnit.values()) System.out.println(c);
public static SimpleTriggerPropertyUnit 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 getIntervalInMillis(long interval)
interval
- unit repeat interval (in millis, or seconds...)Copyright © 2018 Pivotal Software, Inc.. All rights reserved.