public static enum Scannable.Attr.RunStyle extends Enum<Scannable.Attr.RunStyle>
Enum enumerating the different styles an operator can run : their Enum.ordinal() reflects the level of confidence
in their running mode| Enum Constant and Description |
|---|
ASYNC
the operator may change threads while running
|
SYNC
guarantees the operator doesn't change threads (strongest level of guarantee)
|
UNKNOWN
no guarantees can be given on the running mode (default value, weakest level of guarantee)
|
| Modifier and Type | Method and Description |
|---|---|
static Scannable.Attr.RunStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scannable.Attr.RunStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scannable.Attr.RunStyle UNKNOWN
public static final Scannable.Attr.RunStyle ASYNC
public static final Scannable.Attr.RunStyle SYNC
public static Scannable.Attr.RunStyle[] values()
for (Scannable.Attr.RunStyle c : Scannable.Attr.RunStyle.values()) System.out.println(c);
public static Scannable.Attr.RunStyle 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 null