public enum PersistMode extends java.lang.Enum<PersistMode>
| Enum Constant and Description |
|---|
Async
async mode
|
Default
default mode
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable PersistMode |
get(java.lang.String value)
Get an instance from the JSON value
|
@NonNull java.lang.String |
getMode()
get the mode JSON value string
|
java.lang.String |
toString() |
static PersistMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PersistMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistMode Default
public static final PersistMode Async
public static PersistMode[] values()
for (PersistMode c : PersistMode.values()) System.out.println(c);
public static PersistMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic @NonNull java.lang.String getMode()
public java.lang.String toString()
toString in class java.lang.Enum<PersistMode>public static @Nullable PersistMode get(java.lang.String value)
value - the value