public enum SnapshotMode extends Enum<SnapshotMode>
Enum Constant and Description |
---|
INSTANT
Merely accessing the session marks the session as dirty
|
INTERVAL
Calling setAttribute() or getAttribute() marks the session as dirty
|
Modifier and Type | Method and Description |
---|---|
static SnapshotMode |
fromInt(int ordinal) |
static SnapshotMode |
fromString(String mode) |
static SnapshotMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnapshotMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnapshotMode INSTANT
public static final SnapshotMode INTERVAL
public static SnapshotMode[] values()
for (SnapshotMode c : SnapshotMode.values()) System.out.println(c);
public static SnapshotMode 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 SnapshotMode fromString(String mode)
public static SnapshotMode fromInt(int ordinal)
Copyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.