public enum DelayTimeUnit extends Enum<DelayTimeUnit>
| Enum Constant and Description |
|---|
MILLISECONDS
Time unit representing one thousandth of a second
|
MINUTES
Time unit representing sixty seconds
|
SECONDS
Time unit representing one second
|
| Modifier and Type | Method and Description |
|---|---|
long |
toMillis(long duration) |
long |
toMinutes(long duration) |
long |
toSeconds(long duration) |
static DelayTimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DelayTimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DelayTimeUnit MILLISECONDS
public static final DelayTimeUnit SECONDS
public static final DelayTimeUnit MINUTES
public static DelayTimeUnit[] values()
for (DelayTimeUnit c : DelayTimeUnit.values()) System.out.println(c);
public static DelayTimeUnit 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 toMillis(long duration)
public long toSeconds(long duration)
public long toMinutes(long duration)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.