org.jboss.metadata.web.jboss
Enum SnapshotMode
java.lang.Object
java.lang.Enum<SnapshotMode>
org.jboss.metadata.web.jboss.SnapshotMode
- All Implemented Interfaces:
- Serializable, Comparable<SnapshotMode>
public enum SnapshotMode
- extends Enum<SnapshotMode>
Enum Constant Summary |
INSTANT
Merely accessing the session marks the session as dirty |
INTERVAL
Calling setAttribute() or getAttribute() marks the session as dirty |
INSTANT
public static final SnapshotMode INSTANT
- Merely accessing the session marks the session as dirty
INTERVAL
public static final SnapshotMode INTERVAL
- Calling setAttribute() or getAttribute() marks the session as dirty
values
public static SnapshotMode[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SnapshotMode c : SnapshotMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SnapshotMode valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
fromString
public static SnapshotMode fromString(String mode)
fromInt
public static SnapshotMode fromInt(int ordinal)
Copyright © 2009 JBoss Inc.. All Rights Reserved.