public class ClusteredSessionImpl extends SessionImpl
HttpSession that supports re-storing of mutable
session attributes at the end of the request (see restoreDirtyObjects()). This is only
used when clustering.SessionPersistedObjectAnalyzer| Constructor and Description |
|---|
ClusteredSessionImpl(HttpServletRequest request,
HttpSession session,
SessionLock lock,
SessionPersistedObjectAnalyzer analyzer) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name)
Returns the value previously stored in the session.
|
void |
invalidate()
Invalidates this session then unbinds any objects bound to it.
|
void |
restoreDirtyObjects()
Re-stores dirty objects back into the session.
|
void |
setAttribute(String name,
Object value)
Sets the value of an attribute.
|
getAttributeNames, getAttributeNames, getMaxInactiveInterval, isInvalidated, setMaxInactiveIntervalpublic ClusteredSessionImpl(HttpServletRequest request, HttpSession session, SessionLock lock, SessionPersistedObjectAnalyzer analyzer)
public Object getAttribute(String name)
SessiongetAttribute in interface SessiongetAttribute in class SessionImplpublic void setAttribute(String name, Object value)
SessionsetAttribute in interface SessionsetAttribute in class SessionImplpublic void invalidate()
Sessioninvalidate in interface Sessioninvalidate in class SessionImplpublic void restoreDirtyObjects()
SessionrestoreDirtyObjects in interface SessionrestoreDirtyObjects in class SessionImplOptimizedSessionPersistedObject,
OptimizedSessionPersistedObjectAnalyzer,
ImmutableSessionPersistedObject5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.