Enum SchedulerListener.SchedulerEventType
- java.lang.Object
-
- java.lang.Enum<SchedulerListener.SchedulerEventType>
-
- com.github.kagkarlsson.scheduler.event.SchedulerListener.SchedulerEventType
-
- All Implemented Interfaces:
Serializable,Comparable<SchedulerListener.SchedulerEventType>
- Enclosing interface:
- SchedulerListener
public static enum SchedulerListener.SchedulerEventType extends Enum<SchedulerListener.SchedulerEventType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETIONHANDLER_ERRORDEAD_EXECUTIONFAILED_HEARTBEATFAILED_MULTIPLE_HEARTBEATSFAILUREHANDLER_ERRORRAN_DETECT_DEADRAN_EXECUTE_DUERAN_UPDATE_HEARTBEATSUNEXPECTED_ERRORUNRESOLVED_TASK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StatsRegistry.SchedulerStatsEventtoStatsRegistryEvent()static SchedulerListener.SchedulerEventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SchedulerListener.SchedulerEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNEXPECTED_ERROR
public static final SchedulerListener.SchedulerEventType UNEXPECTED_ERROR
-
FAILED_HEARTBEAT
public static final SchedulerListener.SchedulerEventType FAILED_HEARTBEAT
-
COMPLETIONHANDLER_ERROR
public static final SchedulerListener.SchedulerEventType COMPLETIONHANDLER_ERROR
-
FAILUREHANDLER_ERROR
public static final SchedulerListener.SchedulerEventType FAILUREHANDLER_ERROR
-
DEAD_EXECUTION
public static final SchedulerListener.SchedulerEventType DEAD_EXECUTION
-
RAN_UPDATE_HEARTBEATS
public static final SchedulerListener.SchedulerEventType RAN_UPDATE_HEARTBEATS
-
RAN_DETECT_DEAD
public static final SchedulerListener.SchedulerEventType RAN_DETECT_DEAD
-
RAN_EXECUTE_DUE
public static final SchedulerListener.SchedulerEventType RAN_EXECUTE_DUE
-
FAILED_MULTIPLE_HEARTBEATS
public static final SchedulerListener.SchedulerEventType FAILED_MULTIPLE_HEARTBEATS
-
UNRESOLVED_TASK
public static final SchedulerListener.SchedulerEventType UNRESOLVED_TASK
-
-
Method Detail
-
values
public static SchedulerListener.SchedulerEventType[] 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 (SchedulerListener.SchedulerEventType c : SchedulerListener.SchedulerEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchedulerListener.SchedulerEventType 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
-
toStatsRegistryEvent
public StatsRegistry.SchedulerStatsEvent toStatsRegistryEvent()
-
-