public static enum Param.LockingMode extends Enum<Param.LockingMode> implements Param<Param.LockingMode>
SKIP.
The result of any operation without locking is undefined under presence of concurrent
writes.Param.ExecutionMode, Param.LockingMode, Param.PersistenceMode, Param.ReplicationMode, Param.StatisticsMode| Enum Constant and Description |
|---|
LOCK |
SKIP |
TRY_LOCK
The operation fails when it is not possible to acquire the lock without waiting.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ID |
| Modifier and Type | Method and Description |
|---|---|
static Param.LockingMode |
defaultValue() |
Param.LockingMode |
get()
Parameter's value.
|
int |
id()
A parameter's identifier.
|
static Param.LockingMode |
valueOf(int ordinal) |
static Param.LockingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Param.LockingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Param.LockingMode LOCK
public static final Param.LockingMode SKIP
public static final Param.LockingMode TRY_LOCK
public static final int ID
public static Param.LockingMode[] values()
for (Param.LockingMode c : Param.LockingMode.values()) System.out.println(c);
public static Param.LockingMode 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()
ParamA numeric id makes it flexible enough to be stored in collections that take up low resources, such as arrays.
id in interface Param<Param.LockingMode>public Param.LockingMode get()
Paramget in interface Param<Param.LockingMode>public static Param.LockingMode defaultValue()
public static Param.LockingMode valueOf(int ordinal)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.