public enum GridCacheTxConcurrency extends Enum<GridCacheTxConcurrency>
GridCacheTx for more information
on transaction concurrency controls.| Enum Constant and Description |
|---|
OPTIMISTIC
Optimistic concurrency control.
|
PESSIMISTIC
Pessimistic concurrency control.
|
| Modifier and Type | Method and Description |
|---|---|
static GridCacheTxConcurrency |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static GridCacheTxConcurrency |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridCacheTxConcurrency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridCacheTxConcurrency OPTIMISTIC
public static final GridCacheTxConcurrency PESSIMISTIC
public static GridCacheTxConcurrency[] values()
for (GridCacheTxConcurrency c : GridCacheTxConcurrency.values()) System.out.println(c);
public static GridCacheTxConcurrency 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@Nullable public static GridCacheTxConcurrency fromOrdinal(int ord)
ord - Ordinal value.null if ordinal out of range.Copyright © 2014. All rights reserved.