Interface SpringSession
- All Superinterfaces:
AutoCloseable,org.springframework.session.Session
- All Known Implementing Classes:
DistributableImmutableSession,DistributableSession
A session with with an explicit lifecycle.
- Author:
- Paul Ferraro
-
Method Summary
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 bySessionRepository.save(Session).- Specified by:
closein interfaceAutoCloseable
-