Annotation Type EnableCoherenceHttpSession
-
@Retention(RUNTIME) @Target(TYPE) @Documented @Import(CoherenceHttpSessionConfiguration.class) @Configuration(proxyBeanMethods=false) public @interface EnableCoherenceHttpSession
Exposes theSessionRepositoryFilteras a bean namedspringSessionRepositoryFilter. Use together with {linkEnableCoherence.- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
EnableSpringHttpSession
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcacheThe name of the cache that will hold the session data.org.springframework.session.FlushModeflushModeFlush mode for Coherence sessions.org.springframework.session.SaveModesaveModeSave mode for the session.StringsessionName of the Coherence session.intsessionTimeoutInSecondsThe session timeout in seconds.
-
-
-
-
cache
String cache
The name of the cache that will hold the session data. Default isCoherenceIndexedSessionRepository.DEFAULT_SESSION_MAP_NAME.- Returns:
- the name of the Coherence cache
- Default:
- "spring:session:sessions"
-
-
-
session
String session
Name of the Coherence session. If not set will use the default Coherence session.- Returns:
- name of the Coherence session
- Default:
- ""
-
-
-
flushMode
org.springframework.session.FlushMode flushMode
Flush mode for Coherence sessions. The default isON_SAVEwhich updates the Coherence backend only whenSessionRepository.save(Session)is invoked. In a web environment this happens just before the HTTP response is committed.Setting the value to
IMMEDIATEwill ensure that the any updates to the Session are immediately written to Coherence.- Returns:
- the
FlushModeto use
- Default:
- org.springframework.session.FlushMode.ON_SAVE
-
-