public static enum Param.ExecutionMode extends Enum<Param.ExecutionMode> implements Param<Param.ExecutionMode>
Param.ExecutionMode, Param.LockingMode, Param.PersistenceMode
Enum Constant and Description |
---|
ALL
Command is executed on its owners, in transactional mode in the context, too, but there it is not persisted.
|
LOCAL
Command is executed only locally, it is not sent to remote nodes.
|
LOCAL_SITE
Command is executed only in the current site (same as
ALL , but it is not sent for backup
to other sites) |
Modifier and Type | Field and Description |
---|---|
static int |
ID |
Modifier and Type | Method and Description |
---|---|
static Param.ExecutionMode |
defaultValue() |
Param.ExecutionMode |
get()
Parameter's value.
|
int |
id()
A parameter's identifier.
|
static Param.ExecutionMode |
valueOf(int ordinal) |
static Param.ExecutionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Param.ExecutionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Param.ExecutionMode ALL
public static final Param.ExecutionMode LOCAL
public static final Param.ExecutionMode LOCAL_SITE
ALL
, but it is not sent for backup
to other sites)public static final int ID
public static Param.ExecutionMode[] values()
for (Param.ExecutionMode c : Param.ExecutionMode.values()) System.out.println(c);
public static Param.ExecutionMode 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 int id()
Param
A numeric id makes it flexible enough to be stored in collections that take up low resources, such as arrays.
id
in interface Param<Param.ExecutionMode>
public Param.ExecutionMode get()
Param
get
in interface Param<Param.ExecutionMode>
public static Param.ExecutionMode defaultValue()
public static Param.ExecutionMode valueOf(int ordinal)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.