public enum StoreMode extends Enum<StoreMode>
| Enum Constant and Description |
|---|
DB
database store
|
FILE
file store
|
RAFT
raft store
|
REDIS
redis store
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(String name)
whether contains value of store mode
|
static StoreMode |
get(String name)
get value of store mode
|
String |
getName() |
static StoreMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StoreMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StoreMode FILE
public static final StoreMode DB
public static final StoreMode REDIS
public static final StoreMode RAFT
public static StoreMode[] values()
for (StoreMode c : StoreMode.values()) System.out.println(c);
public static StoreMode 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 static StoreMode get(String name)
name - the mode namepublic static boolean contains(String name)
name - the mode namepublic String getName()
Copyright © 2023 Seata. All rights reserved.