Enum Constant and Description |
---|
ALWAYS
Always save all session attributes, regardless of the interaction with the session.
|
ON_GET_ATTRIBUTE
Same as
ON_SET_ATTRIBUTE with addition of saving attributes that have been
read using Session.getAttribute(String) . |
ON_SET_ATTRIBUTE
Save only changes made to session, for instance using
Session.setAttribute(String, Object) . |
Modifier and Type | Method and Description |
---|---|
static SaveMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SaveMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SaveMode ON_SET_ATTRIBUTE
Session.setAttribute(String, Object)
. In highly concurrent environments,
this mode minimizes the risk of attributes being overwritten during processing of
parallel requests.public static final SaveMode ON_GET_ATTRIBUTE
ON_SET_ATTRIBUTE
with addition of saving attributes that have been
read using Session.getAttribute(String)
.public static final SaveMode ALWAYS
public static SaveMode[] values()
for (SaveMode c : SaveMode.values()) System.out.println(c);
public static SaveMode 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 null