Annotation Interface EnableCoherenceHttpSession
@Retention(RUNTIME)
@Target(TYPE)
@Documented
@Import(CoherenceHttpSessionConfiguration.class)
@Configuration(proxyBeanMethods=false)
public @interface EnableCoherenceHttpSession
Exposes the 
SessionRepositoryFilter as a bean named springSessionRepositoryFilter.
 Use together with {link EnableCoherence.- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
- 
- EnableSpringHttpSession
 
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionThe name of the cache that will hold the session data.org.springframework.session.FlushModeFlush mode for Coherence sessions.org.springframework.session.SaveModeSave mode for the session.Name of the Coherence session.intThe session timeout in seconds.booleanSpecify whether an entry processor shall be used when updating the HTTP session.
- 
Element Details- 
sessionTimeoutInSecondsint sessionTimeoutInSecondsThe session timeout in seconds. By default, it is set to 1800 seconds (30 minutes). This should be a non-negative integer.- Returns:
- the seconds a session can be inactive before expiring
 - Default:
- 1800
 
- 
cacheString cacheThe 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"
 
- 
sessionString sessionName of the Coherence session. If not set will use the default Coherence session.- Returns:
- name of the Coherence session
 - Default:
- ""
 
- 
flushModeorg.springframework.session.FlushMode flushModeFlush 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:
- ON_SAVE
 
- 
saveModeorg.springframework.session.SaveMode saveModeSave mode for the session. The default isSaveMode.ON_SET_ATTRIBUTE, which only saves changes made to the session.- Returns:
- the save mode
 - Default:
- ON_SET_ATTRIBUTE
 
- 
useEntryProcessorboolean useEntryProcessorSpecify whether an entry processor shall be used when updating the HTTP session. The default istrue.- Returns:
- true if an entry processor is to be used
 - Default:
- true
 
 
-