Interface SpringSession

All Superinterfaces:
AutoCloseable, org.springframework.session.Session
All Known Implementing Classes:
DistributableImmutableSession, DistributableSession

public interface SpringSession extends org.springframework.session.Session, AutoCloseable
A session with with an explicit lifecycle.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    To be invoked by SessionRepository.save(Session).
    void
    Invalidates this session.
    boolean
    Indicates whether this session was created during the current request.

    Methods inherited from interface org.springframework.session.Session

    changeSessionId, getAttribute, getAttributeNames, getAttributeOrDefault, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getRequiredAttribute, isExpired, removeAttribute, setAttribute, setLastAccessedTime, setMaxInactiveInterval
  • Method Details

    • isNew

      boolean isNew()
      Indicates whether this session was created during the current request.
      Returns:
      true, if this session was newly created, false otherwise.
    • invalidate

      void invalidate()
      Invalidates this session.
    • close

      void close()
      To be invoked by SessionRepository.save(Session).
      Specified by:
      close in interface AutoCloseable