Enum Constant and Description |
---|
IMMEDIATE
Writes to session store as soon as possible.
|
ON_SAVE
Only writes to session store when
SessionRepository.save(Session) is
invoked. |
Modifier and Type | Method and Description |
---|---|
static FlushMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlushMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlushMode ON_SAVE
SessionRepository.save(Session)
is
invoked. In a web environment this is typically done as soon as the HTTP response
is committed.public static final FlushMode IMMEDIATE
SessionRepository.createSession()
will write the session to session store.
Another example is that setting an attribute using
Session.setAttribute(String, Object)
will also write to session store
immediately.public static FlushMode[] values()
for (FlushMode c : FlushMode.values()) System.out.println(c);
public static FlushMode 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