Enum SerialWorkDispatcher.State
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum SerialWorkDispatcher.State extends Enum<SerialWorkDispatcher.State>
Represents the state of the SerialWorkDispatcher.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<SerialWorkDispatcher.State>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_STARTEDIndicates that the dispatcher has not yet started. New work will be accepted but not executed until started.
ACTIVEIndicates that the dispatcher has been started and work will be accepted.
PAUSEDIndicates that the dispatcher has been paused. New work will be accepted but not executed until resumed
SHUTDOWNIndicates that the dispatcher has been shutdown and no more work will be accepted.
-
Method Summary
Modifier and Type Method Description final SerialWorkDispatcher.StatevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<SerialWorkDispatcher.State>values()Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<SerialWorkDispatcher.State>getEntries()Represents the state of the SerialWorkDispatcher. -
-
Method Detail
-
valueOf
final SerialWorkDispatcher.State valueOf(String value)
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.)
-
values
final Array<SerialWorkDispatcher.State> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<SerialWorkDispatcher.State> getEntries()
Represents the state of the SerialWorkDispatcher.
-
-
-
-