Annotation Type EnableCoherenceHttpSession

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String cache
      The name of the cache that will hold the session data.
      org.springframework.session.FlushMode flushMode
      Flush mode for Coherence sessions.
      org.springframework.session.SaveMode saveMode
      Save mode for the session.
      java.lang.String session
      Name of the Coherence session.
      int sessionTimeoutInSeconds
      The session timeout in seconds.
    • Element Detail

      • sessionTimeoutInSeconds

        int sessionTimeoutInSeconds
        The 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
      • session

        java.lang.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 is ON_SAVE which updates the Coherence backend only when SessionRepository.save(Session) is invoked. In a web environment this happens just before the HTTP response is committed.

        Setting the value to IMMEDIATE will ensure that the any updates to the Session are immediately written to Coherence.

        Returns:
        the FlushMode to use
        Default:
        org.springframework.session.FlushMode.ON_SAVE
      • saveMode

        org.springframework.session.SaveMode saveMode
        Save mode for the session. The default is SaveMode.ON_SET_ATTRIBUTE, which only saves changes made to the session.
        Returns:
        the save mode
        Default:
        org.springframework.session.SaveMode.ON_SET_ATTRIBUTE