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