Package io.quarkus.scheduler
Enum Scheduled.ConcurrentExecution
- java.lang.Object
-
- java.lang.Enum<Scheduled.ConcurrentExecution>
-
- io.quarkus.scheduler.Scheduled.ConcurrentExecution
-
- All Implemented Interfaces:
Serializable
,Comparable<Scheduled.ConcurrentExecution>
- Enclosing class:
- Scheduled
public static enum Scheduled.ConcurrentExecution extends Enum<Scheduled.ConcurrentExecution>
Represents a strategy to handle concurrent execution of a scheduled method
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Scheduled.ConcurrentExecution
valueOf(String name)
Returns the enum constant of this type with the specified name.static Scheduled.ConcurrentExecution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROCEED
public static final Scheduled.ConcurrentExecution PROCEED
The scheduled method can be executed concurrently, i.e. it is executed every time the trigger is fired.
-
SKIP
public static final Scheduled.ConcurrentExecution SKIP
The scheduled method is never executed concurrently, i.e. a method execution is skipped until the previous invocation completes.
-
-
Method Detail
-
values
public static Scheduled.ConcurrentExecution[] 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 (Scheduled.ConcurrentExecution c : Scheduled.ConcurrentExecution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Scheduled.ConcurrentExecution 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
-
-